Repository navigation
Versioning improvements - #17
Conversation
PR SummaryLow Risk Overview Updates local build tooling. The Written by Cursor Bugbot for commit 6a28b67. Configure here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds build-time version embedding and runtime resolution: Makefile exposes VERSION/COMMIT/DATE ldflags, cmd/main.go reads build info to set version/commit/date at startup, and cli/root.go passes the resolved version into fang.Execute via fang.WithVersion. Changes
Sequence Diagram(s)sequenceDiagram
participant Make as Builder
participant Bin as Binary
participant BI as BuildInfo (embedded)
participant CLI as fang/rootCmd
Note over Make: Build with LDFLAGS (VERSION/COMMIT/DATE)
Make->>Bin: produce binary (metadata embedded)
Bin->>BI: embed module & vcs metadata
Bin->>Bin: start (cmd/main)
Bin->>BI: runtime/debug.ReadBuildInfo
Bin->>Bin: resolveVersion() -> determine version, commit, date
Bin->>CLI: fang.WithVersion(version) -> fang.Execute
CLI->>CLI: run commands with provided version
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@makefile`:
- Around line 21-22: The install target currently runs go install on ./cmd which
produces a binary named after the path (cmd) rather than dune-cli; change the
install target to build the binary with an explicit output name (matching the
dune-cli target) and keep the same LDFLAGS so the produced artifact is named
dune-cli and not cmd, i.e., replace the go install invocation inside the install
target with a go build invocation that uses $(LDFLAGS), -o dune-cli and ./cmd.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 1a853899-42a9-49ac-90ac-bda444c17e79
📒 Files selected for processing (13)
cli/root.gocmd/dataset/search.gocmd/docs/search.gocmd/main.gocmd/query/archive.gocmd/query/create.gocmd/query/get.gocmd/query/run.gocmd/query/run_sql.gocmd/query/update.gocmd/usage/usage.gomakefileoutput/output.go
💤 Files with no reviewable changes (1)
- output/output.go
A couple versioning improvements for
dune --version