-
Notifications
You must be signed in to change notification settings - Fork 18
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
Don't add go_binary to install filegroup for go_repo #184
Don't add go_binary to install filegroup for go_repo #184
Conversation
f395393
to
445ebba
Compare
445ebba
to
322b230
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
tools/please_go/generate/generate.go
Outdated
@@ -483,8 +498,21 @@ func trimPath(target, base string) string { | |||
|
|||
// libTargetForPleasePackage returns the build label for the go_library() target that would be generated for a package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment needs updating as well
return "", err | ||
} | ||
|
||
libs := append(file.Rules("go_library"), file.Rules("cgo_library")...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what does it mean here if len(libs) is greater than 1? (and should we be handling it?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can't be unless there's a bug in the rest of the code. We just generated this build file. Maybe I can add a check to assert that.
No description provided.