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

Exclude pre-releases from "latest tag" selection in install/upgrade #49

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

HugoDF
Copy link

@HugoDF HugoDF commented Oct 11, 2024

Closes #44.

Detect "pre-release" releases and default to installing/upgrading to the latest non-prerelease version.

Install

Before

./stew install syncthing/syncthing
syncthing/syncthing
⬇️  Downloading asset: 100% |███████████| (11/11 MB, 3.3 MB/s)
✅ Downloaded syncthing-macos-arm64-v1.28.0-rc.3.zip to /Users/hugo/.local/share/stew/pkg

After

./stew install syncthing/syncthing
syncthing/syncthing
⬇️  Downloading asset: 100% |████████████| (10/10 MB, 12 MB/s)
✅ Downloaded syncthing-macos-arm64-v1.27.12.zip to /Users/hugo/.local/share/stew/pkg

Upgrade

Note: syncthing 1.27.12 was installed before running "upgrade"

Before

./stew upgrade syncthing
syncthing
⬇️  Downloading asset: 100% |███████████| (11/11 MB, 9.6 MB/s)
✅ Downloaded syncthing-macos-arm64-v1.28.0-rc.3.zip to /Users/hugo/.local/share/stew/pkg

After

./stew upgrade syncthing
syncthing
Error: The latest tag v1.27.12 is already installed

@HugoDF HugoDF changed the title Exclude pre-releases from auto-selection in install/upgrade Exclude pre-releases from "latest" selection in install/upgrade Oct 11, 2024
@HugoDF HugoDF changed the title Exclude pre-releases from "latest" selection in install/upgrade Exclude pre-releases from "latest tag" selection in install/upgrade Oct 11, 2024
@marwanhawari
Copy link
Owner

Awesome, I'll review this over the weekend!

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 this pull request may close these issues.

Allow ignoring Pre-Releases
2 participants