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

unable to build due to unknown revision for some dependencies #79

Open
vrischmann opened this issue Nov 3, 2024 · 1 comment · May be fixed by #81
Open

unable to build due to unknown revision for some dependencies #79

vrischmann opened this issue Nov 3, 2024 · 1 comment · May be fixed by #81

Comments

@vrischmann
Copy link

Hi,

I just tried to build caddy with this plugin and it fails, here is a snippet of the failures:

2024/11/03 21:12:57 [INFO] exec (timeout=0s): /opt/homebrew/bin/go get -d -v github.com/tailscale/caddy-tailscale github.com/caddyserver/caddy/[email protected] 
go: -d flag is deprecated. -d=true is a no-op
go: downloading gvisor.dev/gvisor v0.0.0-20240306221502-ee1e1f6070e3
get "gvisor.dev/gvisor": found meta tag vcs.metaImport{Prefix:"gvisor.dev/gvisor", VCS:"git", RepoRoot:"https://github.com/google/gvisor"} at //gvisor.dev/gvisor?go-get=1
go: downloading nhooyr.io/websocket v1.8.10
get "nhooyr.io/websocket": found meta tag vcs.metaImport{Prefix:"nhooyr.io/websocket", VCS:"git", RepoRoot:"https://github.com/nhooyr/websocket-old"} at //nhooyr.io/websocket?go-get=1
go: github.com/tailscale/caddy-tailscale imports
	tailscale.com/tsnet imports
	tailscale.com/ipn/ipnlocal imports
	gvisor.dev/gvisor/pkg/tcpip: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
go: github.com/tailscale/caddy-tailscale imports
	tailscale.com/tsnet imports
	tailscale.com/wgengine/netstack imports
	gvisor.dev/gvisor/pkg/buffer: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
go: github.com/tailscale/caddy-tailscale imports
	tailscale.com/tsnet imports
	tailscale.com/wgengine/netstack imports
	gvisor.dev/gvisor/pkg/refs: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3

I also tried to build this module directly using go build:

$ go build ./...
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.3
go: downloading github.com/slackhq/nebula v1.6.1
go: downloading gvisor.dev/gvisor v0.0.0-20240306221502-ee1e1f6070e3
go: downloading github.com/smallstep/pkcs7 v0.0.0-20231024181729-3b98ecc1ca81
go: downloading nhooyr.io/websocket v1.8.10
go: downloading github.com/dgraph-io/ristretto v0.1.0
../../../go/pkg/mod/[email protected]/control/controlhttp/server.go:17:2: reading nhooyr.io/websocket/go.mod at revision v1.8.10: unknown revision v1.8.10
../../../go/pkg/mod/[email protected]/ipn/ipnlocal/local.go:39:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/net/tstun/wrap.go:25:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/net/packet/checksum/checksum.go:12:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/wgengine/netstack/netstack.go:24:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/wgengine/netstack/netstack.go:25:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/wgengine/netstack/netstack.go:27:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/wgengine/netstack/netstack.go:29:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/wgengine/netstack/netstack.go:30:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/wgengine/netstack/netstack.go:31:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/wgengine/netstack/netstack.go:33:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/wgengine/netstack/netstack.go:34:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/wgengine/netstack/netstack.go:35:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3
../../../go/pkg/mod/[email protected]/wgengine/netstack/netstack.go:36:2: gvisor.dev/[email protected]: invalid version: unknown revision ee1e1f6070e3

Upgrading the tailscale.com module to v1.76.3 solves the issue. If there's no objection to upgrading I can open a PR with the change.

@willnorris
Copy link
Member

willnorris commented Nov 5, 2024

we've seen similar gvisor build issues when you do a go get -u that moves it to the Bazel-built master branch. That might be related here? But in any event, if bumping to the latest Tailscale fixes it, then great!

@vrischmann vrischmann linked a pull request Nov 6, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants