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

flag: include source of original definition in redefinition error #7368

Closed
robpike opened this issue Feb 20, 2014 · 3 comments
Closed

flag: include source of original definition in redefinition error #7368

robpike opened this issue Feb 20, 2014 · 3 comments

Comments

@robpike
Copy link
Contributor

robpike commented Feb 20, 2014

If a flag is redefined, it may be due to a transitively imported package you're not
aware of holding the original definition. To help diagnose this, it might be worth
remembering where a flag was defined, although doing so will  require the flag package
to import runtime and other such complexities. I'm not sure it's worthwhile, but I
wanted to record the idea here.
@rsc
Copy link
Contributor

rsc commented Mar 3, 2014

Comment 1:

Labels changed: added release-none.

@robpike
Copy link
Contributor Author

robpike commented May 7, 2015

Decided not to do this. A corner case not worth the added complexity and dependencies.

@robpike robpike closed this as completed May 7, 2015
@WIZARD-CXY
Copy link

Just met this problem in my own project. A glog log_dir flag is redefined.....

@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants