Comments (5)
Oh dear, this might actually be a bug in GVM.
The reason why external libraries are being place in the same directory as your code is because your GOPATH
has that directory listed first. go get
will automatically place fetched packages onto the first path in your GOPATH
.
It looks like GVM might have to change the order of the paths in GOPATH
when using pkgset
s.
from gvm.
Hmm...however, the first path is also used for installation and the pkg
and bin
directories when running things like go install
and whatnot. For those, you probably want the location to be your programming root.
Hmm, this is a tricky one...
from gvm.
I can safely say that I know considerably more about GOPATHs after reading
the golang docs than when I wrote this :) Still don't really know exactly
what is cutting here with pkgset etc. So I am learning by trying out GVM
and seeing what happens :)
On Thu, Jan 2, 2014 at 10:20 PM, Manoj Dayaram [email protected]:
Oh dear, this might actually be a bug in GVM.
The reason why external libraries are being place in the same directory as
your code is because your GOPATH has that directory listed first. go getwill automatically place fetched packages onto the first path in your
GOPATH.It looks like GVM might have to change the order of the paths in GOPATHwhen using
pkgsets.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-31481232
.
from gvm.
I've confirmed I'm having the same problem.
$ gvm pkgset create --local
gvm pkgset use --local
Now using version go1.8.3 in local package set
Local GOPATH is now /Users/wes/projects/ocean-currents/.gvm_local
$ echo "$GOPATH"
/Users/wes/projects/ocean-currents:/Users/wes/projects/ocean-currents/.gvm_local/pkgsets/go1.8.3/local:/Users/wes/.gvm/pkgsets/go1.8.3/global
This issue is really old. Are pkgsets basically unusable at this time?
from gvm.
@wesm-outreach Yes, I'm still facing this same issue and it's essentially caused me to drop pkgset
and exclusively use my own GOPATH
.
In my .zshrc
, I do:
[[ -s "${HOME}/.gvm/scripts/gvm" ]] && source "${HOME}/.gvm/scripts/gvm"
export GOPATH=/code/go
export PATH=$PATH:$GOPATH/bin
I use direnv for my repos, and in that I use:
CUR_GOPATH=${GOPATH}
gvm use go1.11.1
export GOPATH=${CUR_GOPATH}
whereas ideally I could do:
gvm use go1.11.1
gvm pkgset use --local
Unfortunately until this is resolved I'm basically sticking to this pattern.
from gvm.
Related Issues (20)
- Apple M1 Macbook Pro install: "bad CPU type in executable: go" HOT 5
- support for set -u HOT 1
- Feature: gvm associate different go versions on the local device HOT 1
- ability to create symbolic link of default go version HOT 1
- Which GVM echoes out script instead of location HOT 2
- Installing go1.20 HOT 1
- Installing go1.20.2 line 85: go: command not found HOT 7
- About download failure due to inability to access github.com HOT 1
- this don't work HOT 1
- Implode fails HOT 3
- Fedora 38: "warning: egrep is obsolescent" HOT 2
- GVM is broken: use release tags HOT 1
- source /root/.gvm/scripts/gvm` HOT 2
- install gvm lead to cd commad failed HOT 4
- zsh: = not found HOT 10
- Unclear how to build gvm itself HOT 4
- GVM does not function correctly in WSL HOT 7
- Please stop polluting .bashrc. HOT 1
- gvm use doesn't seem to work anymore with aliases HOT 1
- MacOS zsh (at least) install fail related to missing default HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gvm.