-
Notifications
You must be signed in to change notification settings - Fork 47
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
Feature Request: support pre releases #86
Comments
Is this PR talking about github provider only? |
@marcosnils The PR (#87) specifically handles GitHub, whose |
Gotcha, so the PR on #87 only works if the repo doesn't have any releases so far. I guess that's fair enough. What we need to keep discussing here is what happens there's a combination of release and pre-release. I guess that my previous questions apply to that case. |
My personal preference would be to not automatically get newer pre-releases. However, I can see how some people who like to live on the bleeding edge might want to configure that for one or more binaries. A global option would likely lead to unwanted side-effects when you run |
I would like to have the option on a per-binary base to opt-in for pre releases. E.g. something like this: |
The "problem" with this is does pre-releases don't apply to all providers. I believe this should be a provider specific option since gitlab releases / packages and eventually other providers won't support this feature and |
I understand. But so far we do not yet have a way in the cli API to distinguish between different flags for different providers. So what is your idea to make the cli flags provider dependend? A way could be to allow each provider to "register" it self as a sub command. With |
Each provider could still register it's own flags using a FlagSet with a prefix option. i.e |
Any updates on this, I'm trying... $ bin i github.com/0x192/universal-android-debloater
• Getting latest release for 0x192/universal-android-debloater
⨯ command failed error=repository 0x192/universal-android-debloater does not have releases
$ bin i --help
Installs the specified project from a url
Usage:
bin install <url> [flags]
Aliases:
install, i
Flags:
-a, --all Show all possible download options (skip scoring & filtering)
-f, --force Force the installation even if the file already exists
-h, --help help for install
-p, --provider string Forces to use a specific provider
Global Flags:
--debug Enable debug mode |
I attempted a github-only solution at #178, does it make sense? if the repo doesn't have a |
Currently pre releases are filtered out by
bin
when checking for releases on Github.The feature request is to provide an opt-in feature for the user to also use pre releases for
install
,ensure
andupdate
.Followup to #84.
Releated to #50.
The text was updated successfully, but these errors were encountered: