marwanhawari / stew

🥘 An independent package manager for compiled binaries.
MIT License
193 stars 14 forks source link

Upgrade error when tarball has the same name across versions #17

Closed kencx closed 7 months ago

kencx commented 1 year ago

In some repositories, their release packages have the same name for all versions. For example, staticcheck.

This causes stew to error since the tarball already exists in the $stewPath/pkg directory:

Jan21-12:33:27

The workaround is to uninstall and reinstall the binary.

I think it would be better if stew could prompt the user if they would like to replace the existing tarball, instead of simply error-ing.