Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TempModfileBuildFlags ¶
TempModfileBuildFlags returns go command flags that allow module graph updates without mutating the project's go.mod/go.sum.
This is primarily to make packages.Load work reliably even when the project module isn't tidy (for example, a freshly scaffolded module that only requires a local replace).
It returns flags suitable for packages.Config.BuildFlags:
- -mod=mod
- -modfile=<temp file>
Call cleanup after packages.Load completes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.