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

Support purego build tag #68

Merged
merged 1 commit into from Feb 2, 2018
Merged

Support purego build tag #68

merged 1 commit into from Feb 2, 2018

Conversation

dsnet
Copy link
Collaborator

@dsnet dsnet commented Feb 2, 2018

The proposal in golang/go#23172 was accepted. The "purego" build tag
is intended to be a community agreed upon soft-signal to indicate the
forbidden use of unsafe, assembly, or cgo.

A change in the future will remove special-casing the appengine and js tags
once the related toolchains support purego (possibly after some bake-in period).

@dsnet dsnet requested a review from neild February 2, 2018 20:41
Copy link
Member

@dmitshur dmitshur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Over at:

go-cmp/cmp/options.go

Lines 357 to 359 in 97aa668

if !supportAllowUnexported {
panic("AllowUnexported is not supported on App Engine Classic or GopherJS")
}

The text should be updated to reflect the possibility of seeing that panic due to using "purego" build tag.

The proposal in golang/go#23172 was accepted. The "purego" build tag
is intended to be a community agreed upon soft-signal to indicate the
forbidden use of unsafe, assembly, or cgo.

A change in the future will remove special-casing the appengine and js tags
once the related toolchains support purego (possibly after some bake-in period).
@dsnet
Copy link
Collaborator Author

dsnet commented Feb 2, 2018

The text should be updated to reflect the possibility of seeing that panic due to using "purego" build tag.

Done.

@dsnet dsnet merged commit 3af367b into master Feb 2, 2018
@dsnet dsnet deleted the purego branch February 2, 2018 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants