summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorStel Abrego <stel@stel.codes>2023-10-24 14:45:20 -0700
committerStel Abrego <stel@stel.codes>2023-10-24 14:47:23 -0700
commit5452afb0399272159fee9851b5a5314607b16803 (patch)
treede7948c392333966a2dceaa9f58c20f2cc4e9340 /doc
parent0ac6ae7add696447f5ffcee2f69a0247e000f5b5 (diff)
downloadnixpkgs-5452afb0399272159fee9851b5a5314607b16803.tar
nixpkgs-5452afb0399272159fee9851b5a5314607b16803.tar.gz
nixpkgs-5452afb0399272159fee9851b5a5314607b16803.tar.bz2
nixpkgs-5452afb0399272159fee9851b5a5314607b16803.tar.lz
nixpkgs-5452afb0399272159fee9851b5a5314607b16803.tar.xz
nixpkgs-5452afb0399272159fee9851b5a5314607b16803.tar.zst
nixpkgs-5452afb0399272159fee9851b5a5314607b16803.zip
doc: use lib.fakeHash with buildGoModule to get vendorHash
lib.fakeSha256 results in `error: hash <fake_hash> does not include a
type, nor is the type otherwise known from context`.
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/go.section.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/languages-frameworks/go.section.md b/doc/languages-frameworks/go.section.md
index 7fd38a7d21c..59856b92c9e 100644
--- a/doc/languages-frameworks/go.section.md
+++ b/doc/languages-frameworks/go.section.md
@@ -18,7 +18,7 @@ In the following is an example expression using `buildGoModule`, the following a
 
   To avoid updating this field when dependencies change, run `go mod vendor` in your source repo and set `vendorHash = null;`
 
-  To obtain the actual hash, set `vendorHash = lib.fakeSha256;` and run the build ([more details here](#sec-source-hashes)).
+  To obtain the actual hash, set `vendorHash = lib.fakeHash;` and run the build ([more details here](#sec-source-hashes)).
 - `proxyVendor`: Fetches (go mod download) and proxies the vendor directory. This is useful if your code depends on c code and go mod tidy does not include the needed sources to build or if any dependency has case-insensitive conflicts which will produce platform-dependent `vendorHash` checksums.
 - `modPostBuild`: Shell commands to run after the build of the goModules executes `go mod vendor`, and before calculating fixed output derivation's `vendorHash` (or `vendorSha256`). Note that if you change this attribute, you need to update `vendorHash` (or `vendorSha256`) attribute.