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

Move hard version constraint to Gemfile to allow gem to run on 4.x #1270

Closed
wants to merge 1 commit into from

Conversation

pedantic-git
Copy link
Contributor

Hi @daattali - thank you for an amazing theme!

I was using version 6.0.1 with a Jekyll 4.3.3 site and it was working fine, but I needed some of the fixes that have been made since then (for example, a206f70), so I tried to switch to using the latest master on my site and that's when I fell foul of 1758870, which forces the version to 3.x.

The gem works fine with 4.x in my limited testing, so would it be possible to restore support for 4.x? Perhaps if the constraint is just for GH Actions, it could be moved out of the gemspec and into the Gemfile? Here is a PR to that effect.

Thanks so much!

@daattali
Copy link
Owner

Last I tried, being flexible caused github actions to fail. Since this theme is github-pages-first (meaning that it prioritizes working smoothly on GitHub over any other platform), I would not make any changes that negatively affect it on GH.

You can see from the history of that file that this was needed https://github.com/daattali/beautiful-jekyll/commits/master/beautiful-jekyll-theme.gemspec

You're welcome to try making the change again and see if github actions work with a flexible jekyll version. If it works, then I'll accept the PR.

@pedantic-git
Copy link
Contributor Author

Hi @daattali - thanks for your quick reply! My PR does keep the stricter version constraint but it moves it from the gemspec to the Gemfile. Although I can't see if it passes GH Actions (the workflow is awaiting approval), I believe it will because GH Actions will install gems from the Gemfile (which includes the gemspec), whereas dependent Jekyll sites will install them from the gemspec. But it's just a hypothesis at the moment.

@pedantic-git
Copy link
Contributor Author

@daattali I enabled Actions on my repo and confirmed the action passes without error with this change and the override in Gemfile. Let me know if you have other concerns!

@pedantic-git
Copy link
Contributor Author

I've provided a better solution to this in #1276 so I'm going to close this one now. Interested to see what you think!

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.

None yet

2 participants