moovweb / gvm

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

How to set my pkgset as default #304

Open tech-a-go-go opened 6 years ago

tech-a-go-go commented 6 years ago

Hi there,

I'm having a problem on setting my package set as default.

I have two pkgsets, default and sandbox which I've created for go1.11 as follows.

$ gvm pkgset list
gvm go package sets (go1.11)

=> global
   sandbox

Use sandbox pkgset.

$ gvm pkgset use sandox
Now using version go1.11@sandbox

Set sandbox for the default package set (I'm not really sure --default option is effective for pkgset tho. It doesn't give me an error so hopefully it worked)

$ gvm use go1.11@sandbox --default
Now using version go1.11@sandbox

Opened new terminal and check which pkgset is used as default

(This is in new terminal.)

$ gvm pkgset list
gvm go package sets (go1.11)

=> global
   sandbox

grr....it's still global !!!

How can I use my sandbox pkgset as default ?? Do I have to write "gvm pkgset use sandbox" in .bashrc or something like that ?

Cheers.

lucianomda commented 5 years ago

same thing happens to me, did you find a solution?