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

chore(deps): bump go to v1.21 #468

Merged
merged 4 commits into from
Oct 19, 2023
Merged

chore(deps): bump go to v1.21 #468

merged 4 commits into from
Oct 19, 2023

Conversation

ccamel
Copy link
Member

@ccamel ccamel commented Oct 18, 2023

Would you like to leverage the advantages offered by Go version 1.21, such as the slices package, to make it easier to implement PR #462.

Also bumped the version of golangci/golangci-lint to v1.54.

Summary by CodeRabbit

  • Chore: Updated the Go version from 1.20 to 1.21 across all workflows and Dockerfiles, ensuring our software is built and tested with the latest stable release of Go. This update enhances the reliability and performance of our software.
  • Chore: Updated the golangci-lint version from v1.53 to v1.54 in our linting workflow, improving the quality of our code checks.
  • Chore: Updated the versions of several packages in our Dockerfiles, which may enhance the build process and dependencies.
  • Documentation: Updated the required Go version in the README file to reflect the new version used in the project.
  • Style: Removed a linting exception comment from a function in the uri.go file, indicating an improvement in code quality.
  • Chore: Updated the starship-action dependency in the end-to-end testing workflow, potentially improving the reliability of our tests.

@ccamel ccamel self-assigned this Oct 18, 2023
@ccamel ccamel changed the title Bump go to v1.21 chore(deps): bump go to v1.21 Oct 18, 2023
@ccamel ccamel marked this pull request as ready for review October 18, 2023 15:46
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 18, 2023

Walkthrough

This pull request primarily focuses on updating the Go version from 1.20 to 1.21 across the project. This includes changes in GitHub Actions workflows, Dockerfiles, and the Makefile. Additionally, the versions of some dependencies and tools like golangci-lint and starship-action are updated. A minor change is also made in the uri.go file.

Changes

File(s) Summary
.github/workflows/*.yml Updated Go version from 1.20 to 1.21. Also updated versions of golangci-lint and starship-action in respective workflows.
Dockerfile, starship/Dockerfile Base image updated to golang:1.21-alpine3.17 and package versions for ca-certificates, build-base, git, and linux-headers updated.
Makefile Docker images for Golang and GolangCI-Lint updated to golang:1.21-alpine3.17 and golangci/golangci-lint:v1.54 respectively.
README.md Updated the required version of Go from 1.20+ to 1.21+ in the prerequisites section.
x/logic/predicate/uri.go Removed the //nolint:gocognit comment from the shouldEscape function.

🐇

"In the land of code, where the shadows lie,

An update comes, under the cloudless sky.

Go version ascends, from twenty to twenty-one,

A journey of code, a new era begun. 🚀"


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • Mention @coderabbitai in any review comment for bot assistance.
  • Note: Review comments are made on code diffs or files, not on the PR overview.

Pause Incremental Reviews

  • Insert @coderabbitai: ignore in the PR description to halt the bot's ongoing reviews. Remove the line to resume.
  • Additionally, enter @coderabbitai pause to halt the bot's ongoing reviews as any issue or review comment. To
    resume reviews, enter @coderabbitai resume as any issue or review comment.

@ccamel ccamel requested a review from amimart October 18, 2023 15:47
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Commits Files that changed from the base of the PR and between 178094a and 412f202.
Files ignored due to filter (2)
  • go.mod
  • go.sum
Files selected for processing (8)
  • .github/workflows/build.yml (1 hunks)
  • .github/workflows/lint.yml (3 hunks)
  • .github/workflows/test-e2e.yml (1 hunks)
  • .github/workflows/test.yml (2 hunks)
  • Dockerfile (2 hunks)
  • Makefile (1 hunks)
  • starship/Dockerfile (2 hunks)
  • x/logic/predicate/uri.go (1 hunks)
Files skipped from review due to trivial changes (6)
  • .github/workflows/build.yml
  • .github/workflows/lint.yml
  • .github/workflows/test-e2e.yml
  • .github/workflows/test.yml
  • Makefile
  • x/logic/predicate/uri.go
Additional comments (Suppressed): 4
starship/Dockerfile (2)
  • 1-5: The base image has been updated from golang:1.20-alpine3.16 to golang:1.21-alpine3.17. This change is in line with the PR's goal of upgrading the Go version across the project. Ensure that the new base image is compatible with the existing codebase and dependencies.

  • 10-15: The versions of ca-certificates, build-base, git, and linux-headers have been updated. This could potentially affect the build process and dependencies. Please verify that these new versions are compatible with the rest of the codebase and that they don't introduce any breaking changes.

Dockerfile (2)
  • 1-5: The base image has been updated from golang:1.20-alpine3.16 to golang:1.21-alpine3.17. This change is in line with the Go version upgrade mentioned in the PR summary. Ensure that the new base image is compatible with the existing codebase and dependencies.

  • 10-15: The versions of ca-certificates, git, and linux-headers have been updated. This could potentially affect the build process and dependencies. Verify that these new versions are compatible with the rest of the system and do not introduce any breaking changes. Also, ensure that the SHA256 checksums for the library files are still valid with the updated dependencies.

@amimart amimart force-pushed the chore/bump-go-lang-1.21 branch from 412f202 to a82c779 Compare October 19, 2023 08:23
Copy link
Member

@amimart amimart left a comment

Choose a reason for hiding this comment

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

Let's take benefits from Go 1.21 😉

Some updates were missing in Makefile, README.md and starship tests, so I made the changes by force pushing I hope you don't mind :)

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Commits Files that changed from the base of the PR and between 178094a and a82c779.
Files ignored due to filter (3)
  • go.mod
  • go.sum
  • starship/tests/go.mod
Files selected for processing (9)
  • .github/workflows/build.yml (1 hunks)
  • .github/workflows/lint.yml (3 hunks)
  • .github/workflows/test-e2e.yml (1 hunks)
  • .github/workflows/test.yml (2 hunks)
  • Dockerfile (2 hunks)
  • Makefile (1 hunks)
  • README.md (1 hunks)
  • starship/Dockerfile (2 hunks)
  • x/logic/predicate/uri.go (1 hunks)
Files skipped from review due to trivial changes (7)
  • .github/workflows/build.yml
  • .github/workflows/lint.yml
  • .github/workflows/test-e2e.yml
  • .github/workflows/test.yml
  • Makefile
  • README.md
  • x/logic/predicate/uri.go
Additional comments (Suppressed): 4
starship/Dockerfile (2)
  • 1-5: The base image has been updated from golang:1.20-alpine3.16 to golang:1.21-alpine3.17. This is in line with the PR's intent to leverage the features of Go 1.21. Ensure that the new base image is compatible with the rest of the project.

  • 10-15: The versions of ca-certificates, git, and linux-headers have been updated. Ensure that these new versions are compatible with the rest of the project. Also, verify that the SHA256 checksums for the library files /lib/libwasmvm_muslc.aarch64.a and /lib/libwasmvm_muslc.x86_64.a are still valid with the new base image and package versions.

Dockerfile (2)
  • 1-5: The base image has been updated from golang:1.20-alpine3.16 to golang:1.21-alpine3.17. This is in line with the PR's intent to update the Go version across the project. Ensure that the new base image is compatible with the rest of the project and that all dependencies are still met.

  • 10-15: The versions of ca-certificates, git, and linux-headers have been updated. Ensure that these new versions are compatible with the rest of the project and that they don't introduce any breaking changes. Also, verify that the SHA256 checksums for the libwasmvm_muslc.aarch64.a and libwasmvm_muslc.x86_64.a files remain the same, as they have not been updated in this PR.

@ccamel
Copy link
Member Author

ccamel commented Oct 19, 2023

Sure! It's great 😃

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Commits Files that changed from the base of the PR and between a82c779 and 4390bcb.
Files selected for processing (1)
  • .github/workflows/test-e2e.yml (1 hunks)
Files skipped from review due to trivial changes (1)
  • .github/workflows/test-e2e.yml

@amimart amimart force-pushed the chore/bump-go-lang-1.21 branch from 4390bcb to 76905db Compare October 19, 2023 08:56
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Commits Files that changed from the base of the PR and between a82c779 and 76905db.
Files selected for processing (1)
  • .github/workflows/test-e2e.yml (2 hunks)
Files skipped from review due to trivial changes (1)
  • .github/workflows/test-e2e.yml

@ccamel ccamel merged commit 14c0114 into main Oct 19, 2023
@ccamel ccamel deleted the chore/bump-go-lang-1.21 branch October 19, 2023 09:11
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