Tidy executor
The tidy executor runs go mod tidy to ensure the go.mod file matches the project source code.
nx tidy my-go-project
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
| args | string[] | - | Extra args passed to go mod tidy. |
Inferred target
Section titled “Inferred target”Inferred for all Go projects (applications and libraries):
{
"executor": "@naxodev/gonx:tidy",
"cache": true,
"inputs": ["{projectRoot}/go.mod", "{projectRoot}/go.sum", "{projectRoot}/**/*.{go}"]
}