You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go installation creates app instead of revdiff #359
Released CLI is named revdiff, but only installable main package is located at ./app. README lists package and release installation methods but does not document Go installation.
When users install tool with Go, command creates $GOBIN/app:
This differs from binary releases, Homebrew, and AUR packages, which all provide revdiff executable.
Reproduction
go install github.com/umputun/revdiff/[email protected]
ls "$(go env GOPATH)/bin"
Expected:
revdiff
Actual:
app
Impact with gup
Users may rename app to revdiff to match documented CLI usage. On next gup update, Go installs fresh app and leaves renamed revdiff in place. This results in two binaries built from same module, and gup check reports both.
Expected behavior
Project should provide supported Go installation path that produces executable named revdiff, matching release artifacts and documented CLI examples.
Proposed fix
Add cmd/revdiff as installable command package and refactor current executable code under app into importable package. Put thin executable entrypoint in cmd/revdiff/main.go.
Then this command:
go install github.com/umputun/revdiff/cmd/revdiff@latest
will create $GOBIN/revdiff, matching release artifacts and documented CLI usage. gup update will rebuild same binary name and will not leave duplicate app or renamed binaries.
Activity
build: move main package to app/revdiff so go install yields revdiff
build: move main package to app/revdiff so go install yields revdiff