cmd/go: go install -buildmode=plugin creates shared object with wrong file name #33571
Labels
FrozenDueToAge
GoCommand
cmd/go
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
A shared object named
plugintest.so
in/home/zephyrtronium/go/pkg/linux_amd64_dynlink/github.com/zephyrtronium/
.What did you see instead?
A shared object named
plugintest.a
in the same directory.I confirmed that the plugin loads correctly using the
plugin
package, it's just named.a
instead of.so
. The output fromgo install -buildmode=plugin -x
includesmv $WORK/b001/exe/a.out.so /home/zephyrtronium/go/pkg/linux_amd64_dynlink/github.com/zephyrtronium/plugintest.a
, versusgo build -buildmode=plugin -n
havingmv $WORK/b001/exe/a.out.so plugintest.so
.The text was updated successfully, but these errors were encountered: