claudiodangelis / qrcp

:zap: Transfer files over wifi from your computer to your mobile device by scanning a QR code without leaving the terminal.
https://qrcp.sh
MIT License
9.96k stars 529 forks source link

Error with many arguments in util/util.go #252

Closed gpxlnx closed 1 year ago

gpxlnx commented 2 years ago

When I try to compile the package I get the following message

" src/github.com/claudiodangelis/qrcp/util/util.go:65:38: too many arguments in call to zip.Add have(string, *os.File, fs.FileInfo) want(string, []byte) " I would like to know why several arguments are passed and if this could not be changed on line 65 of the util/util.go file?

Thank you and congratulations for the work

claudiodangelis commented 2 years ago

Hi, I have seen this before, I think it's related to a mismatching version of the github.com/jhoonb/archivex library, which the util package relies upon.

claudiodangelis commented 1 year ago

Hello, sorry for the huge delay, I tried to reproduce the issue on a fresh machine but everything is building correctly now. I will close this issue for now but please feel free to reopen it if you're still affected and we will figure it out. Thanks for taking the time to report the problem! Claudio