GithubHelp home page GithubHelp logo

Comments (3)

gshanemiller avatar gshanemiller commented on July 18, 2024

Note: I ran into this issue trying to build gocql The directive that

Refer to it as inf.

is unclear at https://gopkg.in/inf.v0. Why not just name it right in the first place?

Bottom line: the solution appears to be:

which just asks the question of why the source doesn't ship like this?

from inf.

speter avatar speter commented on July 18, 2024

from inf.

speter avatar speter commented on July 18, 2024

Sorry I didn't notice until now that you had edited your comment above with more information. (It seems like Github doesn't send email notifications for edits.)

Note that the "solution" that you outline above is not the correct one. The correct way to get (download+build) the package is to run "go get gopkg.in/inf.v0", as described on the https://gopkg.in/inf.v0 page. You should never need to edit the source to change import paths.

It seems to me that for some reason you are trying to avoid "go get" and trying to replicate its behavior (incorrectly) -- this requires a bit more understanding of how "go get" works which can be less than straightforward in the existence of vanity imports and/or modules. If you really need to do this, I suggest that you study the relevant sections of https://golang.org/cmd/go/ in detail. Long story short, if you're using GOPATH, you need to clone the repo (at the right tag) to $GOPATH/src/gopkg.in/inf.v0 and then the import paths should "just work".

I will close this now as what you're describing seems to be working fine for the vast majority of users, but feel free to comment further if you need more information.

from inf.

Related Issues (7)

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.