Skip to content

Commit 695a759

Browse files
committed
prefetch: document netrc for private Go modules
Signed-off-by: Adam Cmiel <[email protected]>
1 parent 71df9a6 commit 695a759

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/modules/ROOT/pages/how-tos/configuring/prefetching-dependencies.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ spec:
6868
* From the {ProductName} *Applications* view, go to *Activity > Latest commits*.
6969
//include::../partials/con_hermetic_verification.adoc[]
7070
71+
=== [[go-private]]Prefetching Go modules from private repos
72+
73+
To enable downloading modules from private repos, Go supports authentication via `.netrc`.
74+
You can create a netrc Secret for your pipeline as described xref:netrc[below].
75+
For more Go-specific `.netrc` details, see link:https://go.dev/doc/faq#git_https[the Go docs].
76+
7177
== [[pip]]Enabling prefetch builds for `pip`
7278
Cachi2 supports pip by parsing of `pip` requirements files, including but not limited to, `requirements.txt` files placed in the root of your repository. By generically parsing `pip` requirements files, Cachi2 downloads the specified dependencies.
7379

@@ -470,6 +476,7 @@ The `prefetch-dependencies` task supports link:https://everything.curl.dev/using
470476
For example, it is useful for:
471477

472478
* xref:custom-index-servers[pip packages from private index servers]
479+
* xref:go-private[Go modules from private repos]
473480

474481
To create a netrc Secret for use in your pipelines:
475482

0 commit comments

Comments
 (0)