Comments (9)
This would be the right URL: http://gopkg.in/GlassyMedia/go-json-rest.v1/trie
from gopkg.
Actually, I'm reopening this as it should be better documented. Thanks for bringing it up.
from gopkg.
thanks
from gopkg.
I have a project go-godo/godo with many subpackages.
cmd/godo/main.go
looks like this
package main
import (
. "github.com/go-godo/godo"
"github.com/go-godo/godo/util"
)
I expected import rewrites but the source in gopkg.in/godo.v1 still refers to github.com/go-godo/godo
so how would that work if multiple projects in the workspace reference godo.v1 and godo.v2? Am I supposed to use import `"gopkg.in/godo.v1" in the godo project itself?
from gopkg.
@mgutz yes you would need to import gopkg.in/godo.v1
instead of direct github path.
from gopkg.
@GeertJohan That makes things quite problematic, doesn't it? You can't exactly refer to non-existent packages while your project is in development, so you have to develop in $GOROOT/gopkg.in/project.v[number] -- which kind of defeats the purpose of an isolated, version-locked directory, cloned from a normal github repo. On top of that, almost no one uses that standard, so any packages or libraries that import internally from github.com are now broken or basically just waiting to be broken.
from gopkg.
any updates on this? If I have a package that contains multiple sub packages, which are always 100% compatible to the parent package, renaming the imports is a lot of wasted effort/time and just overhead.
from gopkg.
I haven't tried gopkg.in with subpackages yet. Do you have a v1 branch with different import paths? And on every release you merge changes from master and have to update import paths or deal with conflicts?
Looking at some of the Canonical uses,mike go-aws, they don't have a mater branch at all. So they only need to change import paths when releasing a new major version. You can set your default branch to something other than master on GitHub.
from gopkg.
This was here as a doc issue, but the links here seem to be talking about git modules?
Either way, not that "go get" works more like gopkg.in itself, seems less of a concern.
from gopkg.
Related Issues (20)
- changeRefs implementation causes an ambiguous default branch. HOT 1
- getting master instead of v1 HOT 6
- gopkg doesn't choose latest tag in major release HOT 1
- beta version 0.1 and 0.2 HOT 1
- go get: remote error: tls: internal error HOT 3
- fsnotify breakage HOT 6
- Installed binary contains version number in name HOT 5
- "cannot talk to GitHub" HOT 80
- Failed to connect to gopkg.in port 443: Operation timed out HOT 1
- cannot talk to GitHub HOT 1
- Installations from gopkg.in failing HOT 8
- gopkg.in/srwiley/oksvg.gradfix does not resolve HOT 1
- Do not accept self-signed certificates HOT 1
- go get gopkg.in/yaml.v1 fatal error HOT 1
- Git transfer failure when fetching with Go 1.12 or older HOT 1
- fatal: unable to access 'https://gopkg.in/yaml.v3/': server certificate verification failed. HOT 8
- Cannot talk to GitHub HOT 48
- Cannot obtain refs from GitHub: cannot talk to GitHub HOT 6
- gopkg cannot talk to github HOT 4
- Package stuck at older version
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 gopkg.