-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
doc: BuildNameToCertificate deprecated in go 1.14 not mentioned in the release notes #37626
Comments
The release notes are meant to provide a high level description of changes. Every single change that went into Go 1.14 cannot be included. I'm not sure if this is within scope of release notes, since it's easy to see that a function is deprecated by looking at package documentation. I'll let package owners decide if anything should be done. |
Ah fair enough I just thought it was missed rather than being done intentionally. In that case happy for this to be closed as resolved :) |
I certainly agree that not every change can be mentioned in the release notes, but I do tend to feel that all new functions should be documented and, correspondingly, that all decisions to deprecate a function should be documented. |
make something deprecated is not common, a lot of people only read release notes to consider updating go version or not, then make a test. We invoke a lot of functions and if we need to read every function document to see if it is deprecated or not, it is a bad idea. By the way, even I still use |
Happy to add it to the release notes. @Sherlock-Holo When something is deprecated it does not stop working, and |
@dmitshur this will need backporting to show up on golang.org right? |
@FiloSottile Yes, to release-branch.go1.14, since the file to be modified is in the main Go repository. |
@gopherbot please open a backport issue for Go 1.14, this is a documentation change that needs to go live on golang.org. |
Backport issue(s) opened: #38030 (for 1.14). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
@FiloSottile when something is deprecated, it is not a good idea for continuing using it, if it is not defective, why we deprecate it? IMO, the better idea is finding another way to replace it. use tool likes |
There are a few reasons to deprecate something. In this case NameToCertificate is limited in its flexibility and fully replaced by better Certificates selection logic, so no new application should use it. Hence, deprecation. However, if an application is currently using it and it works for them, there is no urgency to switch away from it. We don't break applications unless strictly necessary. I don't disagree about highlighting it in the release notes, though! |
Go 1.14 deprecates BuildNameToCertificate as described here golang/go#37626 Fixing the linter exposes this issue and it's fixed here. Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Go 1.14 deprecates BuildNameToCertificate as described here golang/go#37626 Fixing the linter exposes this issue and it's fixed here. Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
* chore(*) bump gloangci-lint version after e4d31d, the linter does not finish its job and complains with "WARN [runner] Can't run linter goanalysis_metalinter" and "export data is newer version - update tool". This is described here golangci/golangci-lint#893. The solution is to use newer golangci-lint, which is done here. * fix(kuma-cp) remove deprecated functin call Go 1.14 deprecates BuildNameToCertificate as described here golang/go#37626 Fixing the linter exposes this issue and it's fixed here. * chore(*) cleanup dependencies `go mod tidy` * chore(*) add more `-mod=mod` where needed * fix(kuma-cp) fix failing linter after rebase to new k8s Also Move the namespace creation to BeforeSuite section in k8s store testing. * chore(*) add tidy target for go mod maintenance * chore(*) commit the result of the tidy * fix(*) pushd/popd are not always available in a Makefile Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Is there anything left to do here? |
Change https://golang.org/cl/240005 mentions this issue: |
Change https://golang.org/cl/240011 mentions this issue: |
…te is deprecated Also crypto/tls.Config.BuildNameToCertificate. Note that this field and method were deprecated in the Go 1.14 release, so this change is to the 1.14 release notes. For #37626 Fixes #38030 Change-Id: If8549bc746f42a93f1903439e1b464b3e81e2c19 Reviewed-on: https://go-review.googlesource.com/c/go/+/240005 Reviewed-by: Filippo Valsorda <filippo@golang.org> (cherry picked from commit 186e61f) Reviewed-on: https://go-review.googlesource.com/c/go/+/240011
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Looks like the
BuildNameToCertificate
function was deprecated in 1.14 but there's no mention of this on the release page.What did you expect to see?
Release page mentioning the deprecated
What did you see instead?
No mention of the deprecation
The text was updated successfully, but these errors were encountered: