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

protoc-gen-go: only disambiguate predefined idents for local package names #724

Merged
merged 1 commit into from
Oct 5, 2018

Conversation

neild
Copy link
Contributor

@neild neild commented Oct 5, 2018

Permit creating a generated package named e.g., "string". Apply disambiguation
to prevent creating a local import name that conflicts with predefined
identifiers; importing package "string" will be done as:

import string1 "string"

…names

Permit creating a generated package named e.g., "string". Apply disambiguation
to prevent creating a local import name that conflicts with predefined
identifiers; importing package "string" will be done as:

    import string1 "string"
@neild neild requested a review from dsnet October 5, 2018 18:10
@neild neild merged commit ddf2292 into master Oct 5, 2018
@neild neild deleted the packagename branch October 5, 2018 18:17
dsnet added a commit that referenced this pull request Nov 27, 2018
…names (#724)

Permit creating a generated package named e.g., "string". Apply disambiguation
to prevent creating a local import name that conflicts with predefined
identifiers; importing package "string" will be done as:

    import string1 "string"

Change-Id: I2e73d047e94c38ec562712587a026de567ab2a64
Cherry-Pick: github.com/golang/protobuf@ddf22928ea3c56eb4292a0adbbf5001b1e8e7d0d
Original-Author: Damien Neil <neild@users.noreply.github.com>
Reviewed-on: https://go-review.googlesource.com/c/151424
Reviewed-by: Damien Neil <dneil@google.com>
@golang golang locked and limited conversation to collaborators Jun 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants