Skip to content

Update to Go 1.21#53

Merged
suyashkumar merged 2 commits into
suyashkumar:masterfrom
konst-aa:bump-to-go121
Feb 5, 2024
Merged

Update to Go 1.21#53
suyashkumar merged 2 commits into
suyashkumar:masterfrom
konst-aa:bump-to-go121

Conversation

@konst-aa
Copy link
Copy Markdown
Contributor

As go 1.19 has reached End of Life, I propose we update to go 1.21.

This PR changes the version in the .mod file 1 line to make tests pass. The patch was done by marsam in the nixpkgs repository: NixOS/nixpkgs#282237
I also successfully proxied my website, so it seems there are no breaking changes. What other testing needs to be done?

@konst-aa konst-aa marked this pull request as draft January 26, 2024 13:50
@konst-aa konst-aa changed the title Bump to go 1.21 Update to Go 1.21 Jan 26, 2024
The change to reverseproxy.go to make tests pass came from @marsam on GitHub.
@konst-aa konst-aa marked this pull request as ready for review January 26, 2024 17:16
@konst-aa konst-aa marked this pull request as draft January 26, 2024 17:18
@konst-aa konst-aa marked this pull request as ready for review January 30, 2024 03:15
Copy link
Copy Markdown
Owner

@suyashkumar suyashkumar left a comment

Choose a reason for hiding this comment

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

Thanks so much for the PR! Had a quick question/comment below.

Comment thread reverseproxy/reverseproxy.go Outdated
@suyashkumar suyashkumar self-assigned this Feb 4, 2024
@suyashkumar suyashkumar added the enhancement New feature or request label Feb 4, 2024
@konst-aa
Copy link
Copy Markdown
Contributor Author

konst-aa commented Feb 5, 2024

@suyashkumar As you noted in your review, the tests pass on go 1.21 (tested using Act) if one removes the if statement that sets User-Agent to "". (I'm very sorry for the double ping; I didn't realize I could request a re-review)

@konst-aa konst-aa requested a review from suyashkumar February 5, 2024 23:02
Copy link
Copy Markdown
Owner

@suyashkumar suyashkumar left a comment

Choose a reason for hiding this comment

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

Thank you!

@suyashkumar suyashkumar merged commit 6b0f364 into suyashkumar:master Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants