-
Notifications
You must be signed in to change notification settings - Fork 18k
x/crypto: release-branch.go1.12 was removed #36842
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
Comments
I'm not sure what you mean. When I look at the golang.org/x/crypto repo, I can still checkout |
We used to see the following when resolving crypto: 21 external packages imported from 18 projects Now we see: (1) ? attempt golang.org/x/crypto with 1 pkgs; 1 versions to try The 4 versions that used to be available are now only 1. When I look in golang/crypto, I see: Active branches |
@ianlancetaylor Any chance this is an issue in how we pull the dependencies using dep. While I see changes in the crypto repo, I don't know whether 1.12 was dropped. At least from dep, I can't access it. |
The release branches in x/crypto are really internal implementation details, they are not documented and not covered by our security policies, and I didn't know anyone actually used them. What's the use case you are addressing by using them? |
@FiloSottile We used terminal.ReadPassword |
@danws2020 I didn't mean why you are using x/crypto (there are of course a number of reasons for that) but why you are using |
We are still on 1.12 because there wasn't enough time to recertify for 1.13. |
What’s the point of having these release branches? Just merge directly to master. Also, claiming that release branches are an internal detail is kind of silly. This is a public repo. |
Yes, |
This seems to be a misunderstanding: there is no 1.12 release of the x/crypto repository. You can (and probably should) use x/crypto master with Go 1.12, just like any other Go module. If you want to pin a specific commit, you can do that without tracking a specific branch. I don't know how that works with dep but it's certainly possible. To sum up, please don't rely on the undocumented release branches in the x/ repos, sorry if we made it sound like they were supported at any point. |
Well, it breaks our builds too - we used release-branch.go1.11... until now. Not a nice thing to call a branch "release-branch-etcetc" then just remove it. |
@wgja Yes. We made a mistake. Our apologies. We'll try to avoid making similar mistakes going forward. |
Any chance to bring back the branch or at least a tag for that commit? Newer releases are incompatible with the go version we use. |
@wgja My apologies for the confusion and the breakage. To clarify, release-branch.go1.11 does NOT mean "the code that's compatible with Go 1.11", but "the code that ships in the vendor folder of Go 1.11". You should treat x/crypto like you treat any other module, and pin the latest commit that works for you. As long as a Go release is maintained, it will work with x/crypto master. Go 1.11 is unmaintained so you might indeed have to pin an old commit. |
@FiloSottile (Also: what about git tags instead of branches?) |
What version of Go are you using (
go version
)?1.12
Does this issue reproduce with the latest release?
Using dep to pull dependencies against 1.12 fails now because the release-branch-go1.12 is no longer available for crypto. Last week the 1.12 was available for crypto, today we only see 1.13.
The text was updated successfully, but these errors were encountered: