GetEffectiveSourcePolicyFile returns the effective source policy file path. If optionValue is set, it takes precedence. Otherwise, the EXPERIMENTAL_BUILDKIT_SOURCE_POLICY environment variable is used for Docker Buildx compatibility.
(optionValue string)
| 198 | // If optionValue is set, it takes precedence. Otherwise, the EXPERIMENTAL_BUILDKIT_SOURCE_POLICY |
| 199 | // environment variable is used for Docker Buildx compatibility. |
| 200 | func GetEffectiveSourcePolicyFile(optionValue string) string { |
| 201 | if optionValue != "" { |
| 202 | return optionValue |
| 203 | } |
| 204 | return os.Getenv("EXPERIMENTAL_BUILDKIT_SOURCE_POLICY") |
| 205 | } |
| 206 | |
| 207 | func generateBuildctlArgs(ctx context.Context, client *containerd.Client, options types.BuilderBuildOptions) (buildCtlBinary string, |
| 208 | buildctlArgs []string, needsLoading bool, metaFile string, tags []string, cleanup func(), err error) { |
no outgoing calls
searching dependent graphs…