build: move main package to app/revdiff so go install yields revdiff - #360
Merged
Merged
Conversation
`go install` produced a binary named `app`, because Go names it after the last path element. All other packages stay under `app/`. go installs skip the Makefile ldflags, so `--version` printed `unknown` on that path. It now uses the module version from build info when no revision was injected. Fix #359
umputun
force-pushed
the
go-install-revdiff-binary
branch
from
September 14, 2026 04:33
70f9313 to
4460768
Compare
Deploying revdiff with
|
| Latest commit: |
4460768
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://6f7ae329.revdiff.pages.dev |
| Branch Preview URL: | https://go-install-revdiff-binary.revdiff.pages.dev |
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.
go install github.com/umputun/revdiff/app@latestproduced a binary namedapp, since Go names it after the last path element. The main package moves toapp/revdiff/, sogo install github.com/umputun/revdiff/app/revdiff@latestproducesrevdiff. Every other package stays underapp/.--versionprintedunknownon that path becausego installskips the Makefile ldflags. It now falls back to the module version from build info when available.README, site docs and both plugin install references gain the
go installcommand.@latestpicks up the new path with the next tag.Fix #359