-
Notifications
You must be signed in to change notification settings - Fork 240
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
Add support for tar archives #19
Comments
This would be simple enough. No short term plans to knock this out but if anyone wants to take a look at how the other decompressors work and their respective tests, I think you'll find its quite easy to implement. I'm sure we'll do it sometime "soon" though, since it does seem like a no-brainer! |
You are totally right @mitchellh, given what's in place, this is the simplest exercise in go. I have very little skill with go, but I will see what I can do on my own. |
OK, I think I have it (at least it builds and tests pass), but what would be a reasonable way to test this updated build either locally with Terraform or on a remote cluster with Nomad? |
This passes the tests, but I am not a go developer and success may not mean much. See hashicorp#19.
No pressure here, but I'm curious if I did this correctly? |
no pressure, but I am still curious. |
With https://github.com/hashicorp/go-getter/blob/master/decompress_tar.go, does |
now i use go-getter download foo.tar.gz file with http link. it still report ERROR: archive: gzip: invalid header. the foo.tar.gz is created by tar -cvf foo.tar.gz bar |
@dadgar, can this get a review, is it still relevant? |
Yay! Thanks @schmichael! |
Some projects distribute with .zip or .tgz, others have only a .tar (example: https://github.com/AcalephStorage/consul-alerts distributes https://bintray.com/artifact/download/darkcrux/generic/consul-alerts-latest-linux-amd64.tar)
It seems that the go-getter library only supports .tgz or .bz2, but not uncompressed .tar by itself.
The text was updated successfully, but these errors were encountered: