Skip to content

chore(deps): bump Go module dependencies#1002

Open
cpcloud wants to merge 3 commits into
micasa-dev:mainfrom
cpcloud:chore/bump-cmd-micasa-deps
Open

chore(deps): bump Go module dependencies#1002
cpcloud wants to merge 3 commits into
micasa-dev:mainfrom
cpcloud:chore/bump-cmd-micasa-deps

Conversation

@cpcloud
Copy link
Copy Markdown
Collaborator

@cpcloud cpcloud commented May 12, 2026

Summary

  • go get -u ./cmd/micasa + go mod tidy: mcp-go v0.49.0 → v0.52.0, anthropic-sdk-go v1.38.0 → v1.42.0, ollama v0.21.2 → v0.23.0, chroma/v2 v2.23.1 → v2.24.1, plus grpc/genai/api, golang.org/x/* patch bumps, and modernc.org/sqlite v1.50.0 → v1.50.1.
  • Held ollama/ollama below v0.23.1: that release raises its go directive to 1.26.0, which would propagate into micasa's go.mod and trip osv-scanner on stdlib CVEs the pinned Nix toolchain (1.26.2) can't fully resolve. v0.23.0 still declares go 1.24.1, so the go 1.26 directive is unchanged.
  • Held invopop/jsonschema at v0.13.0: v0.14.0 swaps its ordered-map library (wk8/go-ordered-mappb33f/ordered-map) and breaks anthropic-sdk-go v1.42.0.
  • Refreshed Nix vendorHash.

Verified locally: go build ./..., go test -shuffle=on ./..., nix build '.#micasa', nix run '.#osv-scanner' (clean), nix run '.#deadcode' (clean).

Ran `go get -u ./cmd/micasa` + `go mod tidy`. Notable bumps: mcp-go
v0.49.0 -> v0.52.0, anthropic-sdk-go v1.38.0 -> v1.42.0, ollama v0.21.2
-> v0.23.0, chroma/v2 v2.23.1 -> v2.24.1, plus grpc/genai/api and
golang.org/x/* patch bumps and modernc.org/sqlite v1.50.0 -> v1.50.1.

Held ollama below v0.23.1: that release raises its `go` directive to
1.26.0, which would propagate to micasa's go.mod and trip osv-scanner on
stdlib CVEs the pinned Nix toolchain (1.26.2) can't fully resolve. Held
invopop/jsonschema at v0.13.0: v0.14.0 swaps its ordered-map library and
breaks anthropic-sdk-go v1.42.0. Refreshed nix vendorHash.
@cpcloud cpcloud added chore Maintenance and housekeeping nix Nix packaging and build dependencies labels May 12, 2026
cpcloud added 2 commits May 12, 2026 06:51
Go 1.26.3 fixes six stdlib vulnerabilities govulncheck now flags as
reachable: GO-2026-4918 (net/http/internal/http2 infinite loop),
GO-2026-4971 (net Dial/LookupPort panic on Windows), GO-2026-4977 and
GO-2026-4986 (net/mail quadratic concatenation), GO-2026-4980 and
GO-2026-4982 (html/template escaper bypass XSS). Updates the scoped
patchedGo override in nix/overlay.nix; drop it once nixpkgs ships 1.26.3.
…riends

golangci-lint 2.12.x flags new issues across the tree: goconst (repeated
string literals), the govet `inline` analyzer (reflect.Ptr alias), and
modernize (slices.Backward). This commit clears the internal/data,
internal/locale, and internal/sqlfmt slice plus the cross-tree quick
wins:

- reflect.Ptr -> reflect.Pointer (form_filepicker.go, defaults.go)
- backward index loops -> slices.Backward (migrate.go, sqlite/migrator.go,
  llm/prompt.go)
- drop //nolint:gosec directives that newer gosec no longer needs
  (chat.go, extraction.go)
- extract repeated literals into constants: SQLite affinities
  (colTypeInteger/colTypeText), the USD currency fallback, the SELECT
  keyword, the duration/default-tag "now"/"today" sentinels, and the
  seed-data document types, MIME types, category names, and filenames;
  reuse existing ColName/ColNotes/ColTitle for column-name map keys
- exclude _test.go from goconst (test fixtures legitimately repeat
  strings), extending the existing per-file exclusion

goconst still flags ~50 literals in internal/sync, internal/app,
internal/claudecli, internal/llm, internal/extract, internal/relay, and
internal/config; those are a follow-up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance and housekeeping dependencies nix Nix packaging and build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant