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
- Install
store on Windows with:
go install github.com/cushycush/store/v2/cmd/store@latest
- Make sure
C:\Users\\<user>\\go\\bin is on PATH.
- 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.
Summary
On Windows, the
storecommand name collides with the Microsoft Store CLI shim inWindowsApps, which means a normalstore ...invocation can resolve to the wrong executable even after installing this project withgo install.Reproduction
storeon Windows with:C:\Users\\<user>\\go\\binis onPATH.Actual Behavior
On my machine, command resolution prefers the Microsoft Store shim first:
And PowerShell resolves
storeto: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:
I hit this while documenting usage in my dotfiles repo and had to add a warning plus a PowerShell wrapper workaround.