Skip to content

Upgrade dependencies and add command line flags#46

Merged
djthorpe merged 2 commits intomainfrom
djt/0502/cmd
May 2, 2026
Merged

Upgrade dependencies and add command line flags#46
djthorpe merged 2 commits intomainfrom
djt/0502/cmd

Conversation

@djthorpe
Copy link
Copy Markdown
Member

@djthorpe djthorpe commented May 2, 2026

This pull request primarily updates dependency versions in the go.mod file and introduces a new PostgresFlags type in pkg/cmd/postgresql.go to simplify PostgreSQL connection handling. The most important changes are summarized below.

Dependency updates:

  • Updated several direct dependencies to newer versions, including github.com/djthorpe/go-wasmbuild, github.com/jackc/pgx/v5, github.com/mutablelogic/go-client, github.com/mutablelogic/go-server, and golang.org/x/term.
  • Updated multiple indirect dependencies for improved compatibility and security, such as github.com/docker/go-connections, github.com/google/jsonschema-go, github.com/grpc-ecosystem/grpc-gateway/v2, github.com/klauspost/compress, github.com/moby/moby/api, github.com/moby/moby/client, github.com/shirou/gopsutil/v4, go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp, golang.org/x/crypto, golang.org/x/net, golang.org/x/sys, golang.org/x/text, and Google APIs/genproto packages. [1] [2]

PostgreSQL connection handling:

  • Added a new PostgresFlags type in pkg/cmd/postgresql.go that encapsulates PostgreSQL connection parameters and provides a Connect method to establish a connection pool with tracing and logging. This improves code organization and makes it easier to manage database connections.

@djthorpe djthorpe self-assigned this May 2, 2026
Copilot AI review requested due to automatic review settings May 2, 2026 07:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refreshes the module dependency set and adds a reusable command-helper for opening PostgreSQL pools from CLI/environment-backed flags. In the broader codebase, it appears aimed at consolidating database startup wiring that is currently duplicated across command entrypoints.

Changes:

  • Upgrade several direct and indirect Go dependencies in go.mod/go.sum.
  • Add pkg/cmd/postgresql.go with a new PostgresFlags type for URL/password-based database configuration.
  • Add a Connect helper that builds a pool, attaches tracing/logging hooks, and validates connectivity with Ping.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

File Description
pkg/cmd/postgresql.go Introduces a reusable PostgreSQL flag wrapper and connection helper for command code.
go.mod Bumps direct and indirect module versions to newer releases.
go.sum Refreshes checksums to match the dependency updates in go.mod.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/cmd/postgresql.go Outdated
Comment thread pkg/cmd/postgresql.go Outdated
Comment thread pkg/cmd/postgresql.go
Comment thread pkg/cmd/postgresql.go
@djthorpe djthorpe merged commit 2d74e0c into main May 2, 2026
1 check passed
@djthorpe djthorpe deleted the djt/0502/cmd branch May 2, 2026 07:38
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