Skip to content

update go e whatsmenow#270

Open
cleitonme wants to merge 1 commit intoasternic:mainfrom
cleitonme:updatewhatsmenowego
Open

update go e whatsmenow#270
cleitonme wants to merge 1 commit intoasternic:mainfrom
cleitonme:updatewhatsmenowego

Conversation

@cleitonme
Copy link
Contributor

No description provided.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on essential maintenance by upgrading the project's Go version and its underlying Docker base images. It also includes updates to the whatsmeow module and various other Go dependencies, ensuring the application benefits from the latest features, performance improvements, and security patches provided by these newer versions and the updated environment.

Highlights

  • Go Version Upgrade: The Go runtime and toolchain have been upgraded from version 1.24 to 1.25.
  • Base Image Update: The Docker build and runtime images have been updated from bullseye to bookworm (Debian 11 to Debian 12).
  • Whatsmeow Dependency Update: The go.mau.fi/whatsmeow module has been updated to a newer version.
  • Dependency Updates: Several other direct and indirect Go module dependencies have been updated to their latest versions.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • Dockerfile
    • Updated the builder stage from golang:1.24-bullseye to golang:1.25-bookworm.
    • Updated the final stage from debian:bullseye-slim to debian:bookworm-slim.
  • go.mod
    • Updated the Go language version requirement from 1.24 to 1.25.
    • Updated the go.mau.fi/whatsmeow dependency to a newer commit.
    • Updated various indirect dependencies including github.com/petermattis/goid, github.com/vektah/gqlparser/v2, golang.org/x/exp, golang.org/x/term, golang.org/x/text, filippo.io/edwards25519, go.mau.fi/util, golang.org/x/crypto, golang.org/x/net, and golang.org/x/sys.
  • go.sum
    • Updated checksums for all modified dependencies to reflect their new versions.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/build.yml
Activity
  • No human activity recorded for this pull request.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Go version to 1.25, upgrades the base Docker images to Debian Bookworm, and refreshes several Go dependencies. These are positive changes for keeping the project current. I have added one suggestion in the go.mod file to improve its structure and maintainability.

Comment on lines 59 to 72
require (
filippo.io/edwards25519 v1.1.0 // indirect
filippo.io/edwards25519 v1.2.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/jmoiron/sqlx v1.4.0
github.com/joho/godotenv v1.5.1
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
go.mau.fi/libsignal v0.2.1 // indirect
go.mau.fi/util v0.9.4 // indirect
golang.org/x/crypto v0.46.0 // indirect
golang.org/x/net v0.48.0
golang.org/x/sys v0.40.0 // indirect
go.mau.fi/util v0.9.6 // indirect
golang.org/x/crypto v0.48.0 // indirect
golang.org/x/net v0.51.0
golang.org/x/sys v0.41.0 // indirect
rsc.io/qr v0.2.0 // indirect
)
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This go.mod file has multiple require blocks, and this specific block mixes direct and indirect dependencies. It's a good practice to consolidate dependencies into a single require block for direct dependencies and let go mod tidy manage the indirect ones. Running go mod tidy should clean this up, improving maintainability.

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.

1 participant