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

cmd/go: reject -buildmode=plugin if package is not main #17625

Closed
rakyll opened this issue Oct 27, 2016 · 1 comment
Closed

cmd/go: reject -buildmode=plugin if package is not main #17625

rakyll opened this issue Oct 27, 2016 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@rakyll
Copy link
Contributor

rakyll commented Oct 27, 2016

$ cat a.go
package a

import "fmt"

func Hello() {
    fmt.Println("hello")
}

$ go build -buildmode=plugin .
$ echo $?
0

Expected: go build to fail with an error message says plugin mode can only be used to build main packages.

@rakyll rakyll added this to the Go1.8 milestone Oct 27, 2016
@quentinmit quentinmit added the NeedsFix The path to resolution is known, but the work has not been done. label Nov 4, 2016
@rsc rsc modified the milestones: Go1.9, Go1.8 Nov 11, 2016
@gopherbot
Copy link

CL https://golang.org/cl/40691 mentions this issue.

@golang golang locked and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

4 participants