build: fix dependency security alerts#1175
Conversation
Summary of ChangesHello, 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 addresses security vulnerabilities by upgrading the Postgres client to pgx v5. It includes comprehensive updates to the project's dependency tree, including minor version bumps and removals of deprecated packages. Additionally, it refines the default configuration for connecting to the daemon and introduces a temporary go.mod replacement to bridge the gap until the required lnd version is released. Highlights
New Features🧠 You can now enable Memory (public preview) 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. Using Gemini Code AssistThe 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
Customization To customize the 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 Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. 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. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request removes the legacy pgx v4 and pgproto3 dependency chain by migrating to pgx v5 and replacing the lnd/sqldb dependency with a newer revision. It also updates several other Go dependencies and refactors assets/client.go to avoid importing tapcfg by constructing default paths manually. However, setting MacaroonPath to an empty string in DefaultTapdConfig will cause client initialization to fail immediately when it attempts to read the macaroon file. It is recommended to default to the mainnet admin macaroon path instead.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| Host: "localhost:10029", | ||
| MacaroonPath: defaultConf.RpcConf.MacaroonPath, | ||
| TLSPath: defaultConf.RpcConf.TLSCertPath, | ||
| MacaroonPath: "", |
There was a problem hiding this comment.
Setting MacaroonPath to "" by default will cause NewTapdClient(DefaultTapdConfig()) to fail immediately because getClientConn unconditionally attempts to read the macaroon file using os.ReadFile(config.MacaroonPath). Since mainnet is the default network for tapd, we should default to the mainnet admin macaroon path.
| MacaroonPath: "", | |
| MacaroonPath: filepath.Join(defaultTapdDir, "mainnet", "admin.macaroon"), |
Postgres client was bumped to pgx v5 to go away from archived versions.
Tested this manually in regtest on all swap types - everything is green.
Pull Request Checklist
release_notes.mdif your PR contains major features, breaking changes or bugfixes