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

Would it be possible to set ASDF_GOLANG_MOD_VERSION_ENABLED in ~/.asdfrc? #119

Open
skhaz opened this issue Aug 9, 2023 · 3 comments
Open

Comments

@skhaz
Copy link

skhaz commented Aug 9, 2023

The Node plugin has a property called legacy_version_file, which can be set to true at the user's discretion. I have nothing against environment variables, but ASDF already has a configuration file, and I believe that this flag, which is important by the way, should go in ~/.asdfrc.

Certainly, it doesn't need to be all uppercase; it could be golang_mod_version_enabled.

What do you think?

@ankitcharolia
Copy link

@skhaz Kindly try out this goenv: https://github.com/ankitcharolia/goenv

@skhaz
Copy link
Author

skhaz commented Aug 26, 2023

@ankitcharolia, don’t get me wrong, I want to use asdf, I use it for several things. If I needed to use a separate tool for managing go versions, I went back to brew.

@dennisvandehoef
Copy link

The Node plugin has a property called legacy_version_file

Actually, the ruby plugin also uses the exact same config option to read the .ruby-version file. So we could even argue to listen to that config option instead of adding a new one.

Heaving that sad, I am fine with both solutions, as long as I can configure ASDF from the config file instead of a variable which lays somewhere else.

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

No branches or pull requests

3 participants