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

zip.AddFile undefined when running "go get github.com/claudiodangelis/qr-filetransfer" #70

Closed
1 of 4 tasks
issmirnov opened this issue Jul 24, 2018 · 11 comments
Closed
1 of 4 tasks

Comments

@issmirnov
Copy link

I'm opening this issue because:

  • I have found a bug
  • I want to request a feature
  • I have a question
  • Other

I am trying to install the binary with go get github.com/claudiodangelis/qr-filetransfer, and getting the following error:

/Users/issmirnov/go/github.com/claudiodangelis/qr-filetransfer/content.go:54:7: zip.AddFile undefined (type *archivex.ZipFile has no field or method AddFile)

It is coming from here.

I have reproduced this on two systems: ubuntu and OSX.

OSX:

$ go version
go version go1.10.3 darwin/amd64

$ echo $GOPATH
/Users/issmirnov/go

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.13.2
BuildVersion:	17C88

Ubuntu:

$ go version
go version go1.9.4 linux/amd64

$ echo $GOPATH
/Users/issmirnov/go

$ uname -r
Linux mysecrethostname 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ $ cat /etc/lsb-release                     
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LT
@issmirnov
Copy link
Author

I believe the cause of this bug is this commit: jhoonb/archivex@1eb6e91

It removes the AddFile method, and replaces it with Add.

issmirnov referenced this issue in jhoonb/archivex Jul 24, 2018
…erface

Use mostly io.Reader and io.Copy wherever possible
m-shahbaz-kharal added a commit to m-shahbaz-kharal/qr-filetransfer that referenced this issue Aug 1, 2018
@claudiodangelis
Copy link
Owner

Thanks for reporting @issmirnov, I will look at it ASAP

@brualan brualan mentioned this issue Aug 5, 2018
claudiodangelis added a commit that referenced this issue Aug 6, 2018
@vizzah
Copy link

vizzah commented Apr 19, 2020

Having the same issue with the current version:

$ go get github.com/claudiodangelis/qrcp

github.com/claudiodangelis/qrcp/util

dev/go/src/github.com/claudiodangelis/qrcp/util/util.go:38:7: zip.AddFile undefined (type *archivex.ZipFile has no field or method AddFile)

@claudiodangelis
Copy link
Owner

Hi @vizzah, sorry to hear, which version of go are you using?

@Maijin
Copy link

Maijin commented Apr 19, 2020

Same issue as @vizzah here my version is "go version go1.14.2 darwin/amd64"

@vizzah
Copy link

vizzah commented Apr 19, 2020

Hi @vizzah, sorry to hear, which version of go are you using?

go version go1.12.8 linux/amd64

thanks

@edmooney
Copy link

Same issue on: go version go1.14.2 linux/amd64
Thank you!

@u-0000
Copy link

u-0000 commented Apr 20, 2020

Same issue on go version go1.14.2 android/arm64

@beppu
Copy link

beppu commented Apr 20, 2020

I get this error too with go version go1.13 linux/amd64 . However, if I clone the repo and do go build, it builds successfully, and qrcp seems to work.

@claudiodangelis
Copy link
Owner

Should be all good now, the issue was the one pointed out by @issmirnov, which I totally forgot about.

Please let me know if everything works as expected, and thanks everyone for taking the time to report the problem.

@Maijin
Copy link

Maijin commented Apr 20, 2020

Awesome works like a charm now

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

7 participants