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 when mod tidy the app or library |
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}"
]
}