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

Get feature should check if the file already exists before attempting to download overtop #24

Open
tylert opened this issue Jul 23, 2021 · 1 comment

Comments

@tylert
Copy link

tylert commented Jul 23, 2021

At the moment, if you run hashi-up foo get it will download the file regardless of whether the binary already exists...

$ sudo hashi-up terraform get --dest /usr/local/bin
Password:
Downloading file https://releases.hashicorp.com/terraform/1.0.3/terraform_1.0.3_darwin_amd64.zip
31.22 MiB / 31.22 MiB [-----------------------------------------------------------------------------------------------------] 100.00%
Extracting file: terraform to /usr/local/bin
$ sudo hashi-up terraform get --dest /usr/local/bin
Downloading file https://releases.hashicorp.com/terraform/1.0.3/terraform_1.0.3_darwin_amd64.zip
31.22 MiB / 31.22 MiB [-----------------------------------------------------------------------------------------------------] 100.00%
Extracting file: terraform to /usr/local/bin
$ sudo hashi-up terraform get --dest /usr/local/bin
Downloading file https://releases.hashicorp.com/terraform/1.0.3/terraform_1.0.3_darwin_amd64.zip
31.22 MiB / 31.22 MiB [-----------------------------------------------------------------------------------------------------] 100.00%
Extracting file: terraform to /usr/local/bin
...

It would be fantastic if hashi-up would display the output of foo version if it finds the binary exists already and perhaps skips downloading if version is already latest (or else it would just halt right away without checking versions on releases.hashicorp.com).

@tylert
Copy link
Author

tylert commented Jul 23, 2021

@jsiebens I am very much liking hashi-up for automating creating new build agents. Thanks again.

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

No branches or pull requests

1 participant