Skip to content

chore(deps): bump Lima to v2.2.1; ptr.Of → new(), boot-session pidfiles - #46

Merged
bcollard merged 1 commit into
mainfrom
chore/lima-v2.2.1
Oct 19, 2026
Merged

bcollard merged 1 commit into
mainfrom
chore/lima-v2.2.1

Conversation

@bcollard

Copy link
Copy Markdown
Owner

Lima v2.2.1 (stable) removed pkg/ptr, so Dependabot's go_modules job has failed since 2026-10-13 trying to bump it. This does the two follow-ups from #15, which v2.2.1 unblocks (no need to wait for v2.3.0).

Change Where
ptr.Of(x) → new(x) internal/limatemplate/template.go, internal/vm/mounts_test.go
store.WritePIDFile (boot-session aware) internal/cli/hostagent.go
Batched syncWriter (fsync ≤ every 100ms, flushed on exit), ported from upstream cmd/limactl/hostagent.go internal/cli/hostagent.go

Includes #44's commit (x/net v0.60.0 fixes the 5 govulncheck findings failing CI/Security).

Verified: go build, go vet, go test ./..., govulncheck (no module findings). The v2.2.1 guest-agent release assets exist. Not yet tested against a live VM — the guest agent version changes, so the next marina up downloads v2.2.1's.

Closes #15

🤖 Generated with Claude Code

Lima v2.2.1 removed pkg/ptr, which is why Dependabot's go_modules job
failed ("does not contain package github.com/lima-vm/lima/v2/pkg/ptr").

- ptr.Of(x) → new(x) (Go 1.26 value-accepting new; go.mod is already 1.26)
- hostagent: store.WritePIDFile, which records the boot session so a
  pidfile from a previous boot is not trusted (PID reuse)
- hostagent: port upstream's batched syncWriter (fsync at most every
  100ms instead of per write; flushed on exit)

Builds on #44 (x/net v0.60.0 fixes GO-2026-6603/6610/6611/6612/6617).

Closes #15

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bcollard
bcollard merged commit 22a23f0 into main Oct 19, 2026
1 check passed
@bcollard
bcollard deleted the chore/lima-v2.2.1 branch October 19, 2026 16:51
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.

Adopt Lima v2.3.0 changes: ptr.Of → new(), boot-session-aware pidfiles

1 participant