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

Provide .gz or tar.gz binary for streaming download and extracting #1296

Open
sgleske-ias opened this issue Mar 19, 2024 · 4 comments · May be fixed by #2351
Open

Provide .gz or tar.gz binary for streaming download and extracting #1296

sgleske-ias opened this issue Mar 19, 2024 · 4 comments · May be fixed by #2351
Labels
CLI CLI related issues Enhancement New feature or request No Autoclose

Comments

@sgleske-ias
Copy link

sgleske-ias commented Mar 19, 2024

Describe the issue

On Linux, you must download a zip file to the local filesystem before unzipping it. With stream formats like tar and gzip you can extract while downloading.

Steps to reproduce the behavior

url=https://github.com/databricks/cli/releases/download/v0.215.0/databricks_cli_0.215.0_linux_arm64.zip

curl -sSfLo /tmp/file.zip "$url"
unzip /tmp/file.zip

Expected Behavior

Instead of download, then extract; I would like to download and extract.

url=https://github.com/databricks/cli/releases/download/v0.215.0/databricks_cli_0.215.0_linux_arm64.tar.gz

curl -sSfL "$url" | tar -xzC /usr/local/bin --no-same-owner

OS and CLI version

MacOS, Linux (GNU, Busybox, etc), and BSD distributions provide tar, gzip, and other utilities.

For Windows, zip is probably best.

@sgleske-ias sgleske-ias added the CLI CLI related issues label Mar 19, 2024
@andrewnester andrewnester added the Enhancement New feature or request label Mar 19, 2024
Copy link

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added the Stale label Feb 12, 2025
@sgleske-ias
Copy link
Author

This is still relevant; how can this action bot be disabled for this issue so that the issue isn't marked stale?

samrocketman added a commit to samrocketman/databricks-cli that referenced this issue Feb 13, 2025
Changes
-------

Changes GitHub releases to handle Mac and Linux binaries slightly differently than Windows.

| Operating System | Archive Format |
| ---------------- | -------------- |
| Mac OS           | `tar.gz`       |
| Linux            | `tar.gz`       |
| Windows          | `zip`          |

Tests
-----

I tested with the following commands.

```bash
$ goreleaser release --snapshot

$ ls -1 dist/*.{zip,tar.gz}
dist/databricks_cli_darwin_amd64.tar.gz
dist/databricks_cli_darwin_arm64.tar.gz
dist/databricks_cli_linux_amd64.tar.gz
dist/databricks_cli_linux_arm64.tar.gz
dist/databricks_cli_windows_amd64.zip
dist/databricks_cli_windows_arm64.zip
```

Related issues
--------------

Closes databricks#1296

Co-authored-by: Sam Gleske <sgleske@integralads.com>
@samrocketman samrocketman linked a pull request Feb 13, 2025 that will close this issue
@pietern
Copy link
Contributor

pietern commented Feb 13, 2025

Thanks for commenting, I marked the issue to not be autoclosed.

We'll discuss adding a .tar.gz archive internally and get back to this.

@sgleske-ias
Copy link
Author

Thanks and no worries; I also opened a PR which I think resolves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI CLI related issues Enhancement New feature or request No Autoclose
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants