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

Trying to untar a file on Mac causes pointer issues #104

Closed
030 opened this issue Nov 8, 2018 · 1 comment
Closed

Trying to untar a file on Mac causes pointer issues #104

030 opened this issue Nov 8, 2018 · 1 comment

Comments

@030
Copy link

030 commented Nov 8, 2018

./main_darwin_amd64.go:80:24: invalid method expression archiver.TarGz.Open (needs pointer receiver: (*archiver.TarGz).Open)

the following snippet was used on darwin (macos):

archiver.TarGz.Open(input, installDirPath())

the zip equivalent works on windows

archiver.Zip.Open(input, installDirPath())
@mholt
Copy link
Owner

mholt commented Nov 8, 2018

It looks like you are using an old version of the library. Can you update to the latest and try again? Note that the equivalent requires creating a Zip or TarGz configuration first, but you can use archiver.Default* for convenience.

@mholt mholt closed this as completed Nov 11, 2018
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