Giter Site home page Giter Site logo

$GOPATH is unset about cimg-go HOT 5 CLOSED

circleci-public avatar circleci-public commented on July 19, 2024
$GOPATH is unset

from cimg-go.

Comments (5)

felicianotech avatar felicianotech commented on July 19, 2024

Looking into this.

from cimg-go.

felicianotech avatar felicianotech commented on July 19, 2024

@asdwsda It's looking to me that GOPATH is deprecated as of Go v1.13.

The biggest use I still see for it is when go get installing binaries, which not only should be used less and less, but shouldn't be a CI activity in my opinion.

Can you explain your use-case here?

from cimg-go.

asdwsda avatar asdwsda commented on July 19, 2024

You are right, GOPATH is deprecated in Go v1.13. However this repo contains v1.12 and v1.11 as well. What about these versions?

I agree with you. Installing binaries shouldn't be a CI activity, but sometimes I need to do it. I think it is expected to be able to use go get and installed bins in such containers.

What do you think about setting GOBIN instead of GOPATH?

GOBIN
The directory where 'go install' will install a command.

from cimg-go.

felicianotech avatar felicianotech commented on July 19, 2024

GOBIN might be viable. Looking into this and will decide on something soon.

from cimg-go.

felicianotech avatar felicianotech commented on July 19, 2024

@asdwsda I did some testing.

  1. go get will assume a GOPATH for you when installing a binary if one isn't set. That being said, the resulting location still wasn't in PATH so not really useful.
  2. GOBIN was a good idea and would work. While doing some testing, it felt like a half-measure to just properly fixing GOPATH so I just did that instead.
  3. PR #29 will make GOPATH and PATH work for Go binaries.

from cimg-go.

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.