-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
asdf-golang is not selecting the expected version using legacy_version_file #65
Comments
Hey Jesse, the current behavior is actually what is intended based on how
For an exact version I would use a |
Hi Kenny, I'm trying to find a way to overcome this behavior - which I totally get the reasoning, but it's not working for my specific use case. I'm using Go I've tried to use the minor/non-exact version format within
The only workaround I found until now is to resort to the legacy version file, which supports the minor/non-exact version format:
Which is also a bit cumbersome, given it's a legacy option. Would it be possible to offer a configuration option to disable the default behavior of reading the version from Not going after non-stable versions would also work, but I'm not sure if that's compatible with the |
Hey @myhro, In your There is an option to turn off the legacy version support in asdf. https://asdf-vm.com/manage/configuration.html#legacy-version-file But then you would still need to set |
Hi Kenny,
This exactly what I want to avoid. I would like to stick to whatever Currently, I can only do that by opting for the legacy version support. |
That sounds like an interesting feature for asdf in general. Specify major
or major/minor and you get the latest version that matches. 🤔
…On Mon, Jan 17, 2022, 04:58 Tiago Ilieve ***@***.***> wrote:
Hi Kenny,
In your .tool-versions file if you use 1.17.5 based on the output you
should be good.
(...)
But then you would still need to set golfing 1.17.5 in your .tool-versions
file.
This exactly what I want to avoid. I would like to stick to whatever
1.17.x I have available, without specifying the minor release or the
go.mod-based fallback sticking to the 1.18.x beta versions.
Currently, I can only do that by opting for the legacy version support.
—
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAHBQSSRPVMLEAQDULMNDUWPR5BANCNFSM5HYFVBKQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Describe the bug
asdf-golang is not selecting the expected version using only a
go.mod
To Reproduce
I know
legacy_version_file
is being respected given the output fromgo-test asdf current golang
, but it seems to be picking the latest matching major version.Expected behavior
I would expect
go-test asdf current golang
and subsequentlygo version
to produce1.14
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: