Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save edenman/9a865c210c19cb11519261ddf3d93abf to your computer and use it in GitHub Desktop.
Save edenman/9a865c210c19cb11519261ddf3d93abf to your computer and use it in GitHub Desktop.
import cycle when linking?
(00:10:54) ERROR: /root/recharge/src/server/store/BUILD:109:1: GoLink src/server/store/linux_amd64_stripped/go_default_test failed (Exit 1)
panic: found import cycle while visiting server/store
goroutine 1 [running]:
cmd/link/internal/ld.dfs(0xc420596780, 0xc420492dd0, 0xc420492db8)
/usr/local/go/src/cmd/link/internal/ld/lib.go:2280 +0x286
cmd/link/internal/ld.dfs(0xc427186240, 0xc420492dd0, 0xc420492db8)
/usr/local/go/src/cmd/link/internal/ld/lib.go:2284 +0x10e
cmd/link/internal/ld.dfs(0xc422a3f680, 0xc420492dd0, 0xc420492db8)
/usr/local/go/src/cmd/link/internal/ld/lib.go:2284 +0x10e
cmd/link/internal/ld.dfs(0xc421447740, 0xc420492dd0, 0xc420492db8)
/usr/local/go/src/cmd/link/internal/ld/lib.go:2284 +0x10e
cmd/link/internal/ld.dfs(0xc420596780, 0xc420492dd0, 0xc420492db8)
/usr/local/go/src/cmd/link/internal/ld/lib.go:2284 +0x10e
cmd/link/internal/ld.dfs(0xc420596180, 0xc420492dd0, 0xc420492db8)
/usr/local/go/src/cmd/link/internal/ld/lib.go:2284 +0x10e
cmd/link/internal/ld.postorder(0xc4235a0000, 0x156, 0x200, 0xb, 0x7174a0, 0xc429d7cfc8)
/usr/local/go/src/cmd/link/internal/ld/lib.go:2270 +0x11b
cmd/link/internal/ld.(*Link).loadlib(0xc420582000)
/usr/local/go/src/cmd/link/internal/ld/lib.go:608 +0xf3e
cmd/link/internal/ld.Main(0x6ed3a0, 0x10, 0x20, 0x1, 0x7, 0x10, 0x5ff52e, 0x1b, 0x5fc864, 0x14, ...)
/usr/local/go/src/cmd/link/internal/ld/main.go:201 +0xa73
main.main()
/usr/local/go/src/cmd/link/main.go:62 +0x277
GoLink: error running subcommand: exit status 1
(00:10:55) INFO: Elapsed time: 19.698s, Critical Path: 14.59s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment