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

add go 1.22 build #764

Merged
merged 8 commits into from
Oct 24, 2024
Merged

add go 1.22 build #764

merged 8 commits into from
Oct 24, 2024

Conversation

lizzzcai
Copy link
Contributor

@lizzzcai lizzzcai commented Oct 17, 2024

add go 1.22 build support to fix some vulnerabilities.

@lizzzcai lizzzcai requested a review from a team as a code owner October 17, 2024 07:35
@lizzzcai lizzzcai requested review from ilkinulas and sonmezonur and removed request for a team October 17, 2024 07:35
@lizzzcai lizzzcai force-pushed the update-go-version-1017 branch from 9ad4edc to 4f7f3e9 Compare October 17, 2024 08:24
@lizzzcai lizzzcai changed the title upgrade go version to 1.22 add go 1.22 build Oct 17, 2024
@igungor
Copy link
Member

igungor commented Oct 18, 2024

Now that we have Go 1.23.2, could you update your PR to

  • use go 1.23.x in goreleaser and docker builds
  • use 1.23.x, 1.22.x, and 1.21.x in github actions job matrices please? :)

@lizzzcai lizzzcai force-pushed the update-go-version-1017 branch from b98e239 to f8917e1 Compare October 18, 2024 09:09
@lizzzcai
Copy link
Contributor Author

Now that we have Go 1.23.2, could you update your PR to

  • use go 1.23.x in goreleaser and docker builds
  • use 1.23.x, 1.22.x, and 1.21.x in github actions job matrices please? :)

Done. I assumed 1.19 and 1.20 are not needed anymore.

@igungor
Copy link
Member

igungor commented Oct 18, 2024

Now that we have Go 1.23.2, could you update your PR to

  • use go 1.23.x in goreleaser and docker builds
  • use 1.23.x, 1.22.x, and 1.21.x in github actions job matrices please? :)

Done. I assumed 1.19 and 1.20 are not needed anymore.

Correct. We test test latest 3 Go releases.

@igungor
Copy link
Member

igungor commented Oct 18, 2024

ci / qa (1.23.x, ubuntu) fails because staticcheck tool doesn't recognize a Go 1.23 feature yet. Updating honnef.co/go/tools to v0.6.0-0.dev fixes the issue.

I'd push the necessary changes but I don't have access to your repo.

Could you do the above version change in go.mod fileand run go mod tidy && go mod vendor please? This will bring the necessary changes. Please commit those changes and let's see if it's working.

@lizzzcai lizzzcai force-pushed the update-go-version-1017 branch from 612480d to dee2e3d Compare October 18, 2024 17:05
@lizzzcai
Copy link
Contributor Author

ci / qa (1.23.x, ubuntu) fails because staticcheck tool doesn't recognize a Go 1.23 feature yet. Updating honnef.co/go/tools to v0.6.0-0.dev fixes the issue.

I'd push the necessary changes but I don't have access to your repo.

Could you do the above version change in go.mod fileand run go mod tidy && go mod vendor please? This will bring the necessary changes. Please commit those changes and let's see if it's working.

Hi @igungor, by upgrading to honnef. com/go/tools v0.6.0-0.dev, the minimal Go version becomes 1.22.1.

@igungor
Copy link
Member

igungor commented Oct 22, 2024

ci / qa (1.23.x, ubuntu) fails because staticcheck tool doesn't recognize a Go 1.23 feature yet. Updating honnef.co/go/tools to v0.6.0-0.dev fixes the issue.
I'd push the necessary changes but I don't have access to your repo.
Could you do the above version change in go.mod fileand run go mod tidy && go mod vendor please? This will bring the necessary changes. Please commit those changes and let's see if it's working.

Hi @igungor, by upgrading to honnef. com/go/tools v0.6.0-0.dev, the minimal Go version becomes 1.22.1.

Hmm, it may not be the time to add Go 1.23 to the build matrix :(

@lizzzcai
Copy link
Contributor Author

ci / qa (1.23.x, ubuntu) fails because staticcheck tool doesn't recognize a Go 1.23 feature yet. Updating honnef.co/go/tools to v0.6.0-0.dev fixes the issue.
I'd push the necessary changes but I don't have access to your repo.
Could you do the above version change in go.mod fileand run go mod tidy && go mod vendor please? This will bring the necessary changes. Please commit those changes and let's see if it's working.

Hi @igungor, by upgrading to honnef. com/go/tools v0.6.0-0.dev, the minimal Go version becomes 1.22.1.

Hmm, it may not be the time to add Go 1.23 to the build matrix :(

Hi @igungor , how about keep it to 1.22.x, 1.21.x and 1.20.x? Overall 1.22.x meets my requirements.

@igungor
Copy link
Member

igungor commented Oct 22, 2024

ci / qa (1.23.x, ubuntu) fails because staticcheck tool doesn't recognize a Go 1.23 feature yet. Updating honnef.co/go/tools to v0.6.0-0.dev fixes the issue.
I'd push the necessary changes but I don't have access to your repo.
Could you do the above version change in go.mod fileand run go mod tidy && go mod vendor please? This will bring the necessary changes. Please commit those changes and let's see if it's working.

Hi @igungor, by upgrading to honnef. com/go/tools v0.6.0-0.dev, the minimal Go version becomes 1.22.1.

Hmm, it may not be the time to add Go 1.23 to the build matrix :(

Hi @igungor , how about keep it to 1.22.x, 1.21.x and 1.20.x? Overall 1.22.x meets my requirements.

sounds good.

@lizzzcai
Copy link
Contributor Author

Hi @igungor , updated. any timeline for fixing the timeout issue in new go version? and is there any plan to trigger a new release in the main branch (I saw a similar question #766)? Thanks.

@igungor
Copy link
Member

igungor commented Oct 24, 2024

Thanks. Increased s5cmd test command timeout to 10 minutes but the issue is still there. I'm not sure what the problem is on Go 1.21 macos test.

@lizzzcai
Copy link
Contributor Author

lizzzcai commented Oct 24, 2024

Thanks. Increased s5cmd test command timeout to 10 minutes but the issue is still there. I'm not sure what the problem is on Go 1.21 macos test.

Hi @igungor , if I am not wrong, I think this line overwrite the timeout. Maybe I can just increase it or remove it?

@igungor
Copy link
Member

igungor commented Oct 24, 2024

Thanks. Increased s5cmd test command timeout to 10 minutes but the issue is still there. I'm not sure what the problem is on Go 1.21 macos test.

Hi @igungor , if I am not wrong, I think this line overwrite the timeout. Maybe I can just increase it or remove it?

It'd be great if you could remove the timeout line.

@igungor
Copy link
Member

igungor commented Oct 24, 2024

Thanks!

@igungor igungor merged commit 8829d3b into peak:master Oct 24, 2024
21 checks passed
@lizzzcai lizzzcai deleted the update-go-version-1017 branch October 30, 2024 08:14
@vrdn-23
Copy link

vrdn-23 commented Nov 9, 2024

@igungor @lizzzcai Now that the new version has been updated to docker, would it be possible to cut a new release so that we can pull it using the release tag?

@lizzzcai
Copy link
Contributor Author

@igungor @lizzzcai Now that the new version has been updated to docker, would it be possible to cut a new release so that we can pull it using the release tag?

Hi @vrdn-23 , I am expecting a new release as well. Probably need to check with the maintainer on the plan.

@gkowarzyk
Copy link

Before a new release is cut, please also update the github.com/lanrat/extsort to v1.0.1 (see Issue #717). The change in this new version is a license change to a more permissive licence, which would make it easier to adopt s5cmd.
Thanks in advance!

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.

4 participants