Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve arch and system autodetection #52

Closed
gdevenyi opened this issue Oct 15, 2024 · 1 comment · Fixed by #65
Closed

Improve arch and system autodetection #52

gdevenyi opened this issue Oct 15, 2024 · 1 comment · Fixed by #65

Comments

@gdevenyi
Copy link

The autodetection works in other cases, but fails in others, example:

my system is linux and amd64

moar works: https://github.com/walles/moar/releases/tag/v1.27.2
named: linux-amd64

micro does not: https://github.com/zyedidia/micro/releases/tag/v2.0.14
names: linux64, linux64-static

lsd does not: https://github.com/lsd-rs/lsd/releases/tag/v1.1.5
names: x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl

I'm not necessarily saying that in these failing cases that stew should absolutely find the right archive (micro is doing it wrong, but lsd is using a standard naming scheme), but it should at least provide me with a partially filtered list for me to choose from.

@gdevenyi
Copy link
Author

stew doesn't properly detect stew releases either :)

$ stew search stew
* Choose a GitHub project: marwanhawari/stew [⭐️179] 🥘 An independent package manager for compiled binaries.
marwanhawari/stew
! Could not automatically detect the release asset matching your OS/Arch. Please select it manually:  [Use arrows to move, type to filter]
> checksums.txt
  stew-v0.4.0-darwin-amd64.tar.gz
  stew-v0.4.0-darwin-arm64.tar.gz
  stew-v0.4.0-linux-386.tar.gz
  stew-v0.4.0-linux-amd64.tar.gz
  stew-v0.4.0-linux-arm64.tar.gz
  stew-v0.4.0-windows-386.tar.gz

slavaGanzin added a commit to slavaGanzin/stew that referenced this issue Oct 17, 2024
marwanhawari added a commit that referenced this issue Jan 21, 2025
…65)

* Improve arch and system autodetection #52

* feat: improve checksum filtering and os/arch detection

---------

Co-authored-by: Slava <slava.ganzin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant