Skip to content

gopass in Windows %PATH% #3588

Open
Open

Description

@KodiakK-bit

Request to include gopass in the Windows %PATH%.

Installation via Winget does not add gopass to the %PATH%, which makes using it via the shell (cmd) more difficult.

Installation: winget install -e --id gopass.gopass --source winget

Related issue: comment

Installation by downloaded installer not tested.


Other examples

Apps obtained via WinGet like curl.curl, filosottile.age (pkg), rclone.rclone (pkg), helix.helix, and zyedidia.micro (pkg) update the %PATH% and work normally in the shell.

They live in C:\Users\user\AppData\Local\Microsoft\WinGet\Packages\...:

C:\Users\user\AppData\Local\Microsoft\WinGet\Packages\cURL.cURL_Microsoft.Winget.Source_8wekyb3d8bbwe\curl-8.11.1_3-win64-mingw/bin
C:\Users\user\AppData\Local\Microsoft\WinGet\Packages\FiloSottile.age_Microsoft.Winget.Source_8wekyb3d8bbwe\age
C:\Users\user\AppData\Local\Microsoft\WinGet\Packages\Rclone.Rclone_Microsoft.Winget.Source_8wekyb3d8bbwe\rclone-v1.75.0-windows-amd64
C:\Users\user\AppData\Local\Microsoft\WinGet\Packages\Helix.Helix_Microsoft.Winget.Source_8wekyb3d8bbwe\helix-25.07.1-x86_64-windows
C:\Users\user\AppData\Local\Microsoft\WinGet\Packages\zyedidia.micro_Microsoft.Winget.Source_8wekyb3d8bbwe\micro-2.0.15

Gopass install is in another path.:

%LocalAppData%\gopass

winget v1.17.0

Is there an estimated timeframe for making the new release v1.17.0 of gopass available via Winget?

Activity

  1. dominikschulz commented on Sep 11, 2026

    @dominikschulz
    Member

    @KodiakK-bit I'm afraid I don't know much at all about how gopass works on Windows nor the packaging. I try to keep Windows in mind when making changes, but I do lack testing capabilities on that platform (I don't have a Windows license nor am I willing to pay for one and the "free" VMs have been too annoying in the past).

  2. KodiakK-bit commented on Sep 28, 2026

    @KodiakK-bit
    ContributorAuthor

    Fix on PR #3622.

    The PR compile with success in a container with the bellow command.
    The MSI installer successfully tested manually on a real Windows machine.

    podman run --rm \
      -v "$PWD:/app" \
      golang:1.27 /bin/bash -c '
        set -e
        apt update -qq && apt install -qq -y wixl
    
        mkdir -p /opt && cd /opt
        git clone --depth 1 https://github.com/gopasspw/gopass
        cd gopass
        git fetch origin pull/3622/head:windows_PATH_MSI 
        git checkout windows_PATH_MSI 
    
        grep -q "<Environment" helpers/msipkg/main.go || { echo "ERROR: PATCH NOT APPLIED"; exit 1; }
    
        GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o gopass.exe
        mkdir -p dist/gopass_windows_amd64_v1
        cp gopass.exe dist/gopass_windows_amd64_v1/gopass.exe
    
        go run helpers/msipkg/main.go
    
        cp gopass.exe dist/*.msi /app
    '
    
  3. KodiakK-bit commented on Sep 29, 2026

    @KodiakK-bit
    ContributorAuthor

    Things are moving fast.

    When I noticed the PATH wasn't updating, gopass was at version 1.16.1.
    For that version, winget used the MSI installer.

    PR #3622 addressed that. PATH in MSI installer to install gopass.

    However, gopass versions 1.17.1 and 1.17.2 on WinGet switched to installing via the ZIP file (portable), which already handles the PATH.

    PR #3622 remains valid in case someone downloads the MSI installer directly from GitHub.

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

      ⌂ 换网址