Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description of Go internal modules #12336

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion cmd/image-builder/image-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,11 @@ The flag value is base64-encoded to avoid issues with special characters in the

The `--env-file` specifies the path to the file with environment variables to be loaded in the build.
All variables and their values are loaded into the environment before the build starts.
The file must be in the format of `KEY=VALUE` pairs, separated by newlines.
The file must be in the format of `KEY=VALUE` pairs, separated by newlines.

## Access Golang Internal Modules
KacperMalachowski marked this conversation as resolved.
Show resolved Hide resolved

You can use Image Builder to build images that require access to Go internal modules. To use this feature, set the `--use-go-internal-modules=true` flag.
KacperMalachowski marked this conversation as resolved.
Show resolved Hide resolved
The feature is only available for the ADO backend.

This feature utilize the `go` vendor mechanism by downloading all the dependencies into the `vendor` directory. There is no option to pass custom credentials for fetching the dependencies, the tool handles it internally.