filedrop
filedrop copied to clipboard
fails to compile because zombiezen.com/go/webapp missing
Hey, I know this package hasn't been touched for quite a while. I was looking for an example of a sandstorm app written in go, to better understand writing sandstorm app.
Anyway, just FYI, this doesn't build because zombiezen.com no longer serves zombiezen.com/go/webapp.
$ go get -d github.com/zombiezen/filedrop
package zombiezen.com/go/webapp: unrecognized import path "zombiezen.com/go/webapp" (parse https://zombiezen.com/go/webapp?go-get=1: no go-import meta tags ())
You can hack around this for the time being with something like:
go mod init
go mod edit -replace zombiezen.com/go/webapp=bitbucket.org/zombiezen/webapp@e8e50517d046ec609849429e0dc4d48cf5c81c3a
The real solution is I need to migrate that repository over to GitHub. It's on my list to do that, but I won't get to it for a little while here. Thanks for the report.
Can you maybe show what actually needs to be run?
$ go mod init
go: cannot determine module path for source directory /Users/alex/Documents/Git/Extern/Github/zombiezen/filedrop (outside GOPATH, module path must be specified)
Example usage:
'go mod init example.com/m' to initialize a v0 or v1 module
'go mod init example.com/m/v2' to initialize a v2 module
Run 'go help mod init' for more information.
So I tried this:
$ go mod init zombiezen.com/go/webapp
go: creating new go.mod: module zombiezen.com/go/webapp
$ go mod edit -replace zombiezen.com/go/webapp=bitbucket.org/zombiezen/webapp@e8e50517d046ec609849429e0dc4d48cf5c81c3a
$ make
go get -d
go: finding module for package github.com/gorilla/mux
go: downloading github.com/gorilla/mux v1.7.4
go: found github.com/gorilla/mux in github.com/gorilla/mux v1.7.4
go build -o filedrop
can't load package: import cycle not allowed
package zombiezen.com/go/webapp
imports zombiezen.com/go/webapp
make: *** [filedrop] Error 1
@alexs77 The error message explains what's needed..
go mod init github.com/zombiezen/filedrop
go mod edit -replace zombiezen.com/go/webapp=bitbucket.org/zombiezen/webapp@e8e50517d046ec609849429e0dc4d48cf5c81c3a
make all
Watch it work! Yay!
It doesn't work at the moment: go get -d go: errors parsing go.mod: /filedrop/filedrop-1.0.6/go.mod:5: invalid module version bitbucket.org/zombiezen/webapp: https://api.bitbucket.org/2.0/repositories/zombiezen/webapp?fields=scm: 404 Not Found make: *** [Makefile:47: filedrop] Error 1
How to resolve it?