Skip to content

Go installation creates app instead of revdiff #359

Closed

Description

@Gnu-Gorets

Problem

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:

go install github.com/umputun/revdiff/[email protected]

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.

Environment

  • OS: Linux
  • Go: 1.27.1
  • revdiff: v1.13.0
  • gup: v1.9.2

Activity

  1. added a commit that references this issue on Sep 14, 2026
    4460768
  2. added a commit that references this issue on Sep 14, 2026
    d077e6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions