You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
1.7.1
What operating system and processor architecture are you using (go env)?
linux
amd64
What did you do?
I have a code generating tool which creates a main that imports (almost) all pkgs it inspects.
This generated code is deliberately ignoring all "internal" boundaries otherwise respected in normal code, running into imports XXX/internal/XXX: use of internal package not allowed error when compiling.
I would like to add a flag to the go compile command to disable the "internal" check.
Disabling the use of disallowInternal is enough to stop the issue.
I currently run a modified go build with this disabled but I imagine others would benefit from having this option - even if normally discouraged.
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered:
Sorry, we're not keen on adding flags to begin with, much less to support behavior that we don't want to encourage.
You clearly need something, but I don't understand your problem enough to suggest what it might be. This feature request sounds like it might be an XY problem (http://xyproblem.info/) Let's understand the problem before we jump to solutions.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.7.1
What operating system and processor architecture are you using (
go env
)?linux
amd64
What did you do?
I have a code generating tool which creates a main that imports (almost) all pkgs it inspects.
This generated code is deliberately ignoring all "internal" boundaries otherwise respected in normal code, running into
imports XXX/internal/XXX: use of internal package not allowed
error when compiling.I would like to add a flag to the go compile command to disable the "internal" check.
Disabling the use of disallowInternal is enough to stop the issue.
I currently run a modified go build with this disabled but I imagine others would benefit from having this option - even if normally discouraged.
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: