diff options
author | Wael Nasreddine <wael.nasreddine@gmail.com> | 2023-10-25 13:49:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 13:49:13 -0700 |
commit | 75a52265bda7fd25e06e3a67dee3f0354e73243c (patch) | |
tree | a64e60a0126f1f231b6f135559e42169af15042b | |
parent | 791c147cc27444b6c98050e4120f0174fdc4498d (diff) | |
parent | 5452afb0399272159fee9851b5a5314607b16803 (diff) |
Merge pull request #263233 from stelcodes/fix-go-docs
doc: use lib.fakeHash with buildGoModule to get vendorHash
-rw-r--r-- | doc/languages-frameworks/go.section.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/languages-frameworks/go.section.md b/doc/languages-frameworks/go.section.md index 7fd38a7d21c5..59856b92c9ed 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. |