Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.

fails to compile because zombiezen.com/go/webapp missing #16

Open
dncohen opened this issue Jan 22, 2020 · 4 comments
Open

fails to compile because zombiezen.com/go/webapp missing #16

dncohen opened this issue Jan 22, 2020 · 4 comments

Comments

@dncohen
Copy link

dncohen commented Jan 22, 2020

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 ())
@zombiezen
Copy link
Owner

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.

@alexs77
Copy link

alexs77 commented May 22, 2020

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

@jaytaylor
Copy link

@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!

@AlexeiKlimenko
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants