Closed joeydumont closed 4 years ago
looks like you are not using modules for the build.
I was able to compile by running
go mod init hanwen/go-mtpfs
go get -v -x github.com/hanwen/go-mtpfs
Is go mod init
something that I, the packager, should be running, or should it be generated by you, the maintainer, and put into version control?
Also, I had to unset GOPATH, as go.mod cannot be in the GOPATH.
我能够通过运行进行编译
go mod init hanwen/go-mtpfs go get -v -x github.com/hanwen/go-mtpfs
是
go mod init
的东西,我的打包,应该是跑步,还是应该由你来产生,维护者,并投入版本控制?另外,我必须取消设置GOPATH,因为go.mod不能位于GOPATH中。
cannot find package "github.com/hanwen/go-fuse/v2/fs"
I have encountered the same error, have you solved it?
I solved it by using the commands I quoted. Here's my PKGBUILD for Arch Linux:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=go-mtpfs-git
this should be fixed by
commit ac020cbe756b93be91ed0a6ff5c55a7a44a39d68 Author: Han-Wen Nienhuys hanwen@google.com Date: Thu Oct 24 08:57:47 2019 +0200
README.md: update for Go modules
commit 05f80d1b888f5a0ef34a87f18bdfd93e919f49ca Author: Han-Wen Nienhuys hanwen@google.com Date: Thu Oct 24 08:52:40 2019 +0200
Add go.mod and go.sum
I have issues importing the versioned packages: I tried to build with:
and got
I'm using
go version go1.13.1 linux/amd64
and go-tools 1.13, if it helps.I'm new to Go, so I'm not sure if I'm doing something wrong on my end...