doc/rl2505: mention addition of goSum to buildGoModule (#401225)

This commit is contained in:
Paul Meyer
2025-04-27 10:56:41 +02:00
committed by GitHub
3 changed files with 12 additions and 0 deletions

View File

@@ -188,6 +188,13 @@ Whether the build result should be allowed to contain references to the Go tool
Defaults to `false`
### `goSum` {#var-go-goSum}
Specifies the contents of the `go.sum` file and triggers rebuilds when it changes. This helps combat inconsistent dependency errors on `go.sum` changes.
Defaults to `null`
## Overriding `goModules` {#buildGoModule-goModules-override}
Overriding `<pkg>.goModules` by calling `goModules.overrideAttrs` is unsupported. Still, it is possible to override the `vendorHash` (`goModules`'s `outputHash`) and the `pre`/`post` hooks for both the build and patch phases of the primary and `goModules` derivation.