Unverified Commit bc04e642 authored by Paul Meyer's avatar Paul Meyer Committed by GitHub
Browse files

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

parents 85b066ea 5761f0ac
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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.
+3 −0
Original line number Diff line number Diff line
@@ -450,6 +450,9 @@
  "var-meta-teams": [
    "index.html#var-meta-teams"
  ],
  "var-go-goSum": [
    "index.html#var-go-goSum"
  ],
  "variables-specifying-dependencies": [
    "index.html#variables-specifying-dependencies"
  ],
+2 −0
Original line number Diff line number Diff line
@@ -151,6 +151,8 @@

- `buildGoPackage` has been removed. Use `buildGoModule` instead. See the [Go section in the nixpkgs manual](https://nixos.org/manual/nixpkgs/unstable/#sec-language-go) for details.

- `buildGoModule` now supports a `goSum` attribute (`null` by default) to optionally provide a path to `go.sum` and correctly enabling rebuilds when the file changes.

- top-level `playwright` now refers to the github Microsoft/playwright package
  instead of the python tester launcher. You can still refer to the python
  launcher via `python3Packages.toPythonApplication python3Packages.playwright`