Comments (3)
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:
- clone https://github.com/go-inf/inf/tree/v0.9.1
- remove all references to "gopkg.in/inf.v0" and change to "inf"
which just asks the question of why the source doesn't ship like this?
from inf.
from inf.
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
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 inf.