Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix obscured gemfile issue #912

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrmanc
Copy link
Contributor

@mrmanc mrmanc commented Mar 1, 2024

(edited to include just one change per @parkr’s suggestion—see also stacked PR #914)

Fixes #891. jekyll was unable to find the gems which Bundler had installed as part of the Dockerfile because it was finding a Gemfile in the currently working directory (/src/site), which belongs to the site being built. I resolved this by setting an environment variable to tell Bundler where to find the correct Gemfile.

I’m not a Ruby developer, so I might not have done this conventionally. However it seems to work, and it was the minimum change I could make to resolve those issues.

I’ve specified the BUNDLE_GEMFILE as the one that exists in the /src/site location (the source of the site being built) was preventing Jekyll from finding the installed dependencies.
@mrmanc
Copy link
Contributor Author

mrmanc commented Mar 18, 2024

Is there anything else that the team need to support this change? Please let me know if there’s anything else I can do to get it merged.

@@ -9,6 +9,7 @@ class Dependencies
# Jekyll
"jekyll" => "3.9.5",
"jekyll-sass-converter" => "1.5.2",
"webrick" => "1.8.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that everything is upgraded to Ruby 3, I'd recommend this for sure 👍

@parkr
Copy link
Contributor

parkr commented Mar 18, 2024

I might recommend separating the addition of the webrick and the modification of the docket files into two separate PRs. Otherwise LGTM.

@mrmanc mrmanc force-pushed the fix-obscured-gemfile-issue branch from 4012662 to 7292abd Compare March 22, 2024 13:34
@mrmanc
Copy link
Contributor Author

mrmanc commented Mar 22, 2024

I might recommend separating the addition of the webrick and the modification of the docket files into two separate PRs. Otherwise LGTM.

Thanks—I’ve done as you’ve suggested 😃. I’m guessing you aren’t able to act on this yourself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running with docker image does not work out-of-the-box
2 participants