marwanhawari / stew

🥘 An independent package manager for compiled binaries.
MIT License
151 stars 9 forks source link

Allow ignoring Pre-Releases #44

Open amogus07 opened 1 month ago

amogus07 commented 1 month ago

Right now, I use stew to keep the syncthing binary up-to-date. Today, stew upgrade --all updated it to v1.27.10-rc.1, which is a labeled as "Pre-Release". Is there a way to have stew only pull updates labeled as "Latest" and ignore Pre-Releases?

marwanhawari commented 1 month ago

I agree, the only time I would want to see prereleases are for the stew browse command. Everything else should just pull the latest non-prerelease release.

Looks like there is a boolean prerelease property returned in the HTTP response for the GitHub API GET /repos/{owner}/{repo}/releases endpoint. Would need to update this type and then update the application code to filter out prerelease releases (except for stew browse).

Do you want to try and take this on?

amogus07 commented 1 month ago

I'm sorry, I would love to help out, but I don't know Go, neither am I familiar with this project's source code. As of now, someone else will have to do it.