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

Release tar.gz files are actually just tar files #48

Closed
hblanks opened this issue Feb 7, 2019 · 2 comments
Closed

Release tar.gz files are actually just tar files #48

hblanks opened this issue Feb 7, 2019 · 2 comments

Comments

@hblanks
Copy link

hblanks commented Feb 7, 2019

The v3.0.0 release archives have .gz extensions, but aren't, in fact, gzipped.

Expected Behavior

$ file *.gz
oauth2_proxy-v3.0.0-0-g7887272.darwin-amd64.go1.11.tar.gz:  gzip compressed data, was "oauth2_proxy-v3.0.0-0-g7887272.darwin-amd64.go1.11.tar", last modified: Thu Feb  7 21:24:45 2019, from Unix
oauth2_proxy-v3.0.0-0-g7887272.linux-amd64.go1.11.tar.gz:   gzip compressed data, was "oauth2_proxy-v3.0.0-0-g7887272.linux-amd64.go1.11.tar", last modified: Thu Feb  7 21:24:59 2019, from Unix
oauth2_proxy-v3.0.0-0-g7887272.windows-amd64.go1.11.tar.gz: gzip compressed data, was "oauth2_proxy-v3.0.0-0-g7887272.windows-amd64.go1.11.tar", last modified: Thu Feb  7 21:24:30 2019, from Unix

Current Behavior

$ file *.gz
oauth2_proxy-v3.0.0-0-g7887272.darwin-amd64.go1.11.tar.gz:  POSIX tar archive
oauth2_proxy-v3.0.0-0-g7887272.linux-amd64.go1.11.tar.gz:   POSIX tar archive
oauth2_proxy-v3.0.0-0-g7887272.windows-amd64.go1.11.tar.gz: POSIX tar archive

Possible Solution

tar -czf would probably do it.

Steps to Reproduce (for bugs)

cd /tmp
curl -L -O https://github.com/pusher/oauth2_proxy/releases/download/v3.0.0/oauth2_proxy-v3.0.0-0-g7887272.windows-amd64.go1.11.tar.gz
curl -L -O https://github.com/pusher/oauth2_proxy/releases/download/v3.0.0/oauth2_proxy-v3.0.0-0-g7887272.darwin-amd64.go1.11.tar.gz
curl -L -O https://github.com/pusher/oauth2_proxy/releases/download/v3.0.0/oauth2_proxy-v3.0.0-0-g7887272.linux-amd64.go1.11.tar.gz
file *.gz

Context

When running things like tar -xzf ${ARCHIVE_NAME} in an install / build script, tar fails.

Your Environment

$ lsb_release -a
...
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic
@ploxiln
Copy link
Contributor

ploxiln commented Feb 7, 2019

just recently fixed in #43

@hblanks
Copy link
Author

hblanks commented Feb 7, 2019

SGTM. Thank you for your work!

@hblanks hblanks closed this as completed Feb 7, 2019
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

2 participants