Skip to content

Windows: store command collides with Microsoft Store CLI #60

Description

@OliStarCooke

Summary

On Windows, the store command name collides with the Microsoft Store CLI shim in WindowsApps, which means a normal store ... invocation can resolve to the wrong executable even after installing this project with go install.

Reproduction

  1. Install store on Windows with:
    go install github.com/cushycush/store/v2/cmd/store@latest
  2. Make sure C:\Users\\<user>\\go\\bin is on PATH.
  3. Run:
    where.exe store
    Get-Command store | Format-List Name,CommandType,Source,Definition

Actual Behavior

On my machine, command resolution prefers the Microsoft Store shim first:

C:\Users\oc004990\AppData\Local\Microsoft\WindowsApps\store.exe
C:\Users\oc004990\go\bin\store.exe

And PowerShell resolves store to:

Name        : store.exe
CommandType : Application
Source      : C:\Users\oc004990\AppData\Local\Microsoft\WindowsApps\store.exe
Definition  : C:\Users\oc004990\AppData\Local\Microsoft\WindowsApps\store.exe

So store apply, store doctor, etc. can invoke the wrong program unless the user calls the Go-installed executable explicitly or adds a PowerShell wrapper/alias.

Expected Behavior

Windows users should have some official guidance or handling for this collision, for example:

  • a note in the main README / installation docs
  • a Windows-specific troubleshooting entry
  • or another mitigation if you prefer a different approach

I hit this while documenting usage in my dotfiles repo and had to add a warning plus a PowerShell wrapper workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions