Skip to content

fix: review follow-ups from the embeddable-cli change#4

Merged
giraffesyo merged 1 commit into
masterfrom
fix/review-follow-ups
Jul 13, 2026
Merged

fix: review follow-ups from the embeddable-cli change#4
giraffesyo merged 1 commit into
masterfrom
fix/review-follow-ups

Conversation

@giraffesyo

Copy link
Copy Markdown
Member

What does this PR do?

Addresses the confirmed follow-ups from the review of #3 (tracked in parallelworks/core#17051):

  • cli.Run no longer hardcodes VersionNumber; release builds stamp internal.VersionNumber from the tag (${GITHUB_REF_NAME#v}), with a 0.0.0-dev fallback for untagged builds. Verified: a build stamped with 9.9.9 reports goofys version 9.9.9-v9.9.9.
  • Inlined the one-line mount() pass-through wrapper at its single call site.
  • gofmt -w across the tree (utils.go plus three other pre-existing dirty files) and a gofmt gate added to ci.yml so it stays clean.
  • gopsutil v4 parity on the buffer-pool memory-pressure path: verified by source comparison — both the 2019 snapshot and v4 read MemAvailable from /proc/meminfo (kernel 3.14+) with the same calcAvailVmem / Cached+Free fallbacks, so maxMemToUse behaves identically. No code change needed.

Testing

go build ./... (darwin + linux/amd64 CGO=0), go test ./api/..., gofmt clean, and the ldflags version stamp verified end to end.

https://claude.ai/code/session_0191kNQ9ZxzwEng9QfcfBKe6

Stamp VersionNumber from the release tag instead of a hardcoded literal
that drifts, inline the pass-through mount wrapper, gofmt the tree, and
gate CI on gofmt so it stays clean.

Claude-Session: https://claude.ai/code/session_0191kNQ9ZxzwEng9QfcfBKe6
@giraffesyo giraffesyo changed the title Fix review follow-ups from the embeddable-cli change fix: review follow-ups from the embeddable-cli change Jul 13, 2026
@giraffesyo
giraffesyo merged commit 2751642 into master Jul 13, 2026
1 check passed
@giraffesyo
giraffesyo deleted the fix/review-follow-ups branch July 13, 2026 02:08
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