Skip to content

add go 1.22 build - #764

Merged
igungor merged 8 commits into
peak:masterfrom
lizzzcai:update-go-version-1017
Oct 24, 2024
Merged

igungor merged 8 commits into
peak:masterfrom
lizzzcai:update-go-version-1017

Conversation

@lizzzcai

@lizzzcai lizzzcai commented Oct 17, 2024

Copy link
Copy Markdown
Contributor

add go 1.22 build support to fix some vulnerabilities.

@lizzzcai
lizzzcai requested review from a team, 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
Comment thread e2e/run_test.go Outdated
Comment thread storage/s3.go
@igungor

igungor commented Oct 18, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
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

igungor commented Oct 18, 2024

Copy link
Copy Markdown
Member

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

igungor commented Oct 18, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
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

igungor commented Oct 22, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
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

igungor commented Oct 22, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
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

igungor commented Oct 24, 2024

Copy link
Copy Markdown
Member

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

lizzzcai commented Oct 24, 2024

Copy link
Copy Markdown
Contributor Author

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

igungor commented Oct 24, 2024

Copy link
Copy Markdown
Member

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

igungor commented Oct 24, 2024

Copy link
Copy Markdown
Member

Thanks!

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

vrdn-23 commented Nov 9, 2024

Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown

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