moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
9.87k stars 520 forks source link

pin version for a particular project #452

Open Aceix opened 8 months ago

Aceix commented 8 months ago

need a feature to automatically switch go version for a particular project, i should be able to manually set this version

gallyamb commented 8 months ago

BTW, it's very similar to what nvm have

ShivamKumar2002 commented 7 months ago

gvm applymod automatically picks version from go.mod file. Is there need for a separate file for keeping version? I think expected go version for project should be in go.mod. What are your thoughts?

Aceix commented 7 months ago

@ShivamKumar2002 right, the expected version will be in go.mod. I was hoping the version switch will be automatic once the terminal is opened in the same directory as the go.mod file, instead of typing the applymod command