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

go/build: Context.CgoEnabled comment meaning unclear #25953

Closed
willfaught opened this Issue Jun 19, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@willfaught
Copy link
Contributor

willfaught commented Jun 19, 2018

CgoEnabled bool // whether cgo can be used

It's unclear whether this means using a Context where CgoEnabled is false on a package that uses cgo would result in an error, or would omit all the files from go/build.Package.CgoFiles.

What version of Go are you using (go version)?

https://golang.org/pkg/go/build/#Context

Does this issue reproduce with the latest release?

Yes

@gopherbot

This comment has been minimized.

Copy link

gopherbot commented Jul 31, 2018

Change https://golang.org/cl/126736 mentions this issue: go/build: Context.CgoEnabled is better commented

@gopherbot gopherbot closed this in 6182d08 Dec 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.