-
Notifications
You must be signed in to change notification settings - Fork 19
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
change with.version
default to latest
#24
Comments
i think if anything, the default should be removed so users must specify a version |
that would be a huge anti-pattern and not only go against the "just works" nature of the zig philosophy but also non-standard from many other tools people are familiar with. git defaults to |
you usually don't use docker's imo, having to do - uses: goto-bus-stop/setup-zig@v2
with:
version: master is no less "just works" than - uses: goto-bus-stop/setup-zig@v1 and in the first section it's also explicit which version you are targeting. |
the latter is much more just works because it picks a sensible default |
i don't think an auto-updating reference that has frequent breaking changes is a sensible default for every project, that has to be quite intentional. it's good if projects rely on like it "just works" now but it doesn't "just work" when you get back to a project in a year from now and don't remember what version was current at the time. |
as mentioned in the original comment, latest release would be acceptable too, I would only personally prefer master. a hardcoded |
and yes, as the language changes people's CI should break so that they know they need to update their code. that's the point |
0.5.0 is odd, yes ;p upgrading the default to a newer release is a breaking change to the action. So users would have to update their CI code anyways to get the new default. that's why i think it's better to not have a default at all. then they can update the Zig version number themselves and don't have to wait for a new setup-zig release, or look at the release notes to see which setup-zig release uses which Zig version, etc. you need to specify the version number explicitly anyway in the case where you want to test on a proper release AND on nightly. |
defaulting to the latest release the the status quo for every other language action |
whether that be the latest release or master
The text was updated successfully, but these errors were encountered: