-
-
Notifications
You must be signed in to change notification settings - Fork 977
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
Add tool-versions file #1559
base: main
Are you sure you want to change the base?
Add tool-versions file #1559
Conversation
This helps software like asdf discover exactly what version of hugo to use, since hugo versions often have incompatibilities
Added comments to try to keep this in sync, since we can't reuse the tool-versions file in GitHub Actions directly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with asdf
so I'm not sure if that is something we want to support/encourage, but if we do, this PR looks good to me.
@ClearlyClaire the main reason I ended up using asdf for Hugo was because I contribute to multiple Hugo sites each running different incompatible versions, so I'd constantly get weird breakages when switching between repos. asdf helps with that by automatically switching my hugo version to the right one for the project & the |
FYI, you can do something like...
...which will let you get the benefits of |
I'd be of the inclination to suggest we do adopt |
Yes, agreed on having it better locked/specified somewhere. Im guessing theres no equivalent of |
Yeah, that annoys me too, but there isn't really anything we can do about that, unless we do an upstream PR to the github action to support |
Sort of related - https://github.com/peaceiris/actions-hugo?tab=readme-ov-file#%EF%B8%8F-read-hugo-version-from-file - the GH action that publishes the site could pull that version value from a file (example there is a .env, but in theory could do whatever) |
This helps software like asdf discover exactly what version of hugo to use, since hugo versions often have incompatibilities.
I've been bitten many times working on docs but having the wrong version of hugo in my $PATH