Giter Site home page Giter Site logo

GVM workflow for newbies about gvm HOT 5 OPEN

moovweb avatar moovweb commented on May 18, 2024
GVM workflow for newbies

from gvm.

Comments (5)

mdayaram avatar mdayaram commented on May 18, 2024

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 pkgsets.

from gvm.

mdayaram avatar mdayaram commented on May 18, 2024

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.

leebrooks0 avatar leebrooks0 commented on May 18, 2024

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.

 avatar commented on May 18, 2024

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.

ihgann avatar ihgann commented on May 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.