Skip to content

Released tarballs contain an entry for the current directory #2476

Closed

Description

@twpayne

The released tarballs contain an entry for the current directory ./.

This can be seen by downloading a recent release tarball and listing its contents:

$ curl -LO https://github.com/git-ecosystem/git-credential-manager/releases/download/v3.0.1/gcm-linux-x64-3.0.1.tar.gz
...

$ tar tvfz gcm-linux-x64-3.0.1.tar.gz
drwxr-xr-x  0 cloudtest cloudtest   0 Oct  6 13:42 ./
-rwxr--r--  0 cloudtest cloudtest 2808040 Feb  6  2026 ./libHarfBuzzSharp.so
-rwxr--r--  0 cloudtest cloudtest 38133864 May 27 12:26 ./libmsalruntime.so
-rwxr--r--  0 cloudtest cloudtest 11170296 May 23 02:33 ./libSkiaSharp.so
-rw-r--r--  0 cloudtest cloudtest     2597 Oct  6 13:39 ./NOTICE
-rwxr-xr-x  0 cloudtest cloudtest 31090656 Oct  6 13:42 ./git-credential-manager

Note that the first entry is ./. This entry serves no purpose and should not be included in the tarball.

Refs twpayne/chezmoi#5240.

Activity

  1. added
    bugA bug in Git Credential Manager
    engineeringRefactoring or build changes
    on Oct 29, 2026
  2. mjcheetham commented on Oct 29, 2026

    @mjcheetham
    Contributor

    The issue here is in the various archive.sh scripts (Linux and Mac) that have the line like:

    tar -czf "$PAYLOAD_TARBALL" -C "$BINDIR" . || die "Failed to create binaries archive"

    We don't need the . but instead a *.

  3. added a commit that references this issue on Oct 29, 2026
    b30e439
  4. added a commit that references this issue on Oct 29, 2026
    cd336c1
  5. twpayne commented on Oct 29, 2026

    @twpayne
    Author

    Thank you for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugA bug in Git Credential ManagerengineeringRefactoring or build changes

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions