Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit d1dd49b

Browse files
deelawncodyoss
authored andcommittedDec 20, 2019
Added self_package option to readme (#355)
1 parent 41e7e9a commit d1dd49b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎README.md

+6
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ It supports the following flags:
8787
mock name (mock factory method and mock recorder will be named after the mock).
8888
If one of the interfaces has no custom name specified, then default naming
8989
convention will be used.
90+
91+
* `-self_package`: The full package import path for the generated code. The purpose
92+
of this flag is to prevent import cycles in the generated code by trying to include
93+
its own package. This can happen if the mock's package is set to one of its
94+
inputs (usually the main one) and the output is stdio so mockgen cannot detect the
95+
final output package. Setting this flag will then tell mockgen which import to exclude.
9096

9197
* `-copyright_file`: Copyright file used to add copyright header to the resulting source code.
9298

0 commit comments

Comments
 (0)
This repository has been archived.