Add GoReleaser config and release workflow#19
Merged
munezaclovis merged 3 commits intomainfrom Mar 5, 2026
Merged
Conversation
- Update cmd/root.go to support version injection via ldflags (default: dev) - Add .goreleaser.yaml for cross-compiled builds (darwin/linux, amd64/arm64) - Add release.yml workflow triggered on version tags (v*)
munezaclovis
added a commit
that referenced
this pull request
Mar 25, 2026
- #16 (setup TUI off-by-one): cursor bound is correct, max = len+1 - #19 (StartBackgroundUpdater): IS called from server.Start() - #38 (updateSymlinks divergence): SetGlobal saves before calling, paths always agree - #39 (frankenphp logFile leak): struct only built after Start() succeeds, Process is always non-nil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
cmd/root.go-- Change hardcoded version"0.1.0"to"dev"default, with ldflags injection support (-X github.com/prvious/pv/cmd.version=...).goreleaser.yaml-- Cross-compile for darwin on amd64/arm64, static binaries (CGO_ENABLED=0), checksums, auto-changelog. Release assets are bare binaries namedpv-darwin-arm64andpv-darwin-amd64..github/workflows/release.yml-- Triggers onv*tags, runs tests, then GoReleaser to build and publish to GitHub ReleasesUsage