moovweb / gvm

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

pin version for a particular project #452

Open Aceix opened 1 year ago

Aceix commented 1 year ago

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

gallyamb commented 1 year ago

BTW, it's very similar to what nvm have

ShivamKumar2002 commented 1 year 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 1 year 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