-
Notifications
You must be signed in to change notification settings - Fork 8
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: Prevent downloading and installing already installed tools via --version
#207
Comments
Hi @sandreas! Sorry for the late answer but forgot about this issue 😅 I don't see this feature as needed. By default If you use the The only improvement I see is that it would avoid downloading the same asset if the min version match the current one. I'm open to discussion if you are still interested 🙂 |
Exactly this is the point. Now the problem is, if I use |
I understand your point, but I'm not sure if this is something I'll think about it. |
You may be correct. Here are my thoughts:
So the only thing I could come up with was providing the |
These all make sense, but still not sure. An alternative implementation could be using a new subcommand: dra outdated --current-version 0.6.3 devmatteini/dra
# If current version is outdated, then exit code is 1
# If current version is NOT outdated, then exit code is 0 and you can combine it in your scripts like
Of course, it would be much easier with only an option in |
I'm not willing to FORCE you to do anything, basically I think you did more than enough - thank you for that :-) If you think, it's too much, just skip it. I'd also take the extra subcommand, whatever works. My use case is pretty straight forward. I have a simple script paired with a text file to install all my tools (
|
Sure, that's not what I meant, and I didn't feel any pressure from you, in fact it was an interesting discussion 😄 It's always nice to see that a tool I created is helping other people solve similar problems!
Let me share how I use When I need to install or update a tool, I run its script, but I rarely perform a batch update of tools.
Avoiding downloading the version already installed would definitely be a great feature. I would say that it could even be the default behavior, with a I just need to see/think if it's possible to implement, otherwise the |
Hello,
sorry to bother you again, I really like this tool and had another idea of improving.
Since I'm using
dra
in a script to install all my tools, it would be really great, if I could makedra
prevent downloading and installing a version lower or equal the already installed version.Example:
This will skip any download or installation of version lower than equal 0.16.5 (the currently installed one).
Hope you like it.
The text was updated successfully, but these errors were encountered: