Skip to content
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

Update Go to v1.21 #58

Merged
merged 1 commit into from
Aug 23, 2023
Merged

Conversation

antoninbas
Copy link
Contributor

  • Uncomment call to "cookie.Valid()" in "splitLargeCookie": starting with Go v1.20, a cookie with an empty Expires field is now considered valid, and Expires is only checked when it is set.
  • Replace usage of "golang.org/x/exp/slices" with new "slices" package.
  • Stop using "httputil.NewSingleHostReverseProxy" for the K8s API reverse proxy. Instead use the new "Rewrite" hook for "httputil.ReverseProxy", introduced in Go v1.20. See https://tip.golang.org/doc/go1.20 for more details.

* Uncomment call to "cookie.Valid()" in "splitLargeCookie": starting
  with Go v1.20, a cookie with an empty Expires field is now considered
  valid, and Expires is only checked when it is set.
* Replace usage of "golang.org/x/exp/slices" with new "slices" package.
* Stop using "httputil.NewSingleHostReverseProxy" for the K8s API reverse
  proxy. Instead use the new "Rewrite" hook for "httputil.ReverseProxy",
  introduced in Go v1.20. See https://tip.golang.org/doc/go1.20 for more
  details.

Signed-off-by: Antonin Bas <abas@vmware.com>
@antoninbas antoninbas force-pushed the update-golang-to-v1.21 branch from d553697 to 4944908 Compare August 10, 2023 19:40
@antoninbas antoninbas requested a review from tnqn August 10, 2023 20:27
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antoninbas antoninbas merged commit d023673 into antrea-io:main Aug 23, 2023
@antoninbas antoninbas deleted the update-golang-to-v1.21 branch August 23, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants