Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: buildmode=plugin always recompile all dependencies #19707
What did you do?
package main var V int
go build -buildmode=plugin -v test/main.go
What did you expect to see?
lion@Lion-Laptop [ test ] $ go build -buildmode=plugin -v test/main.go command-line-arguments lion@Lion-Laptop [ test ] $
What did you see instead?
lion@Lion-Laptop [ test ] $ go build -buildmode=plugin -v test/main.go runtime/internal/sys runtime/internal/atomic runtime runtime/cgo command-line-arguments lion@Lion-Laptop [ test ] $
The same as building with
This is because all packages need to be rebuilt by the toolchain configured for dynamic linking, and by default
Until then, you can use