-
-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make v4 the default branch until v5 is stable #266
Comments
What is broken and what such change would solve? |
Old This is the way the Go devs intend to allow for some non-modules backwards compatibility without having to create ugly versioned subdirectories. Right now, the default branch is (I notice you're juggling branches to test this now – thanks!) |
It is not clear which Go version is broken - I guess it is something before Go 1.11. We only support last 3 stable Go versions - at the moment that is Go 1.12+. I don't see the point with juggling with default git branch - that is too unreliable and eventually will be broken anyway. The v5 is the default because
|
It's not a broken of Go, it's any (relatively recent) version of Go using non-modules resolution. (As you can see from the commit, they backported the change all the way back to Go 1.9.) Without fixing the default branch, msgpack will be broken for Go users who haven't yet migrated to modules. (By the way, I don't think this is ideal. But it's the way the Go devs decided it should work.) |
So this is about the Git default branch while the the issue text says this is about the naming of the branch ( Please fix the issue description as it is misleading (particularly in the context where some projects are moving away from the I propose: "make v4 the default branch until v5 is stable" as title. |
I have come up with an alternative solution for non-modules users: use |
Unfortunately this doesn't work with go1.12, it fails to build, complaining
See golang/go#33154 (fixed in go1.13+ but not in go1.12) |
Hello again… further to #264,
Due to the way "old" go get resolution works, The
v4
branch should be namedmaster
untilv5
is stable.Thanks,
Jeff
The text was updated successfully, but these errors were encountered: