You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/cli/build.go
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ func Build() *cobra.Command {
73
73
varfailOnLintWarningbool
74
74
varcpu, memorystring
75
75
vartimeout time.Duration
76
+
varextraPackages []string
76
77
77
78
vartraceFilestring
78
79
@@ -132,6 +133,7 @@ func Build() *cobra.Command {
132
133
build.WithOutDir(outDir),
133
134
build.WithExtraKeys(extraKeys),
134
135
build.WithExtraRepos(extraRepos),
136
+
build.WithExtraPackages(extraPackages),
135
137
build.WithDependencyLog(dependencyLog),
136
138
build.WithBinShOverlay(overlayBinSh),
137
139
build.WithStripOriginName(stripOriginName),
@@ -192,6 +194,7 @@ func Build() *cobra.Command {
192
194
cmd.Flags().StringVar(&runner, "runner", "", fmt.Sprintf("which runner to use to enable running commands, default is based on your platform. Options are %q", build.GetAllRunners()))
193
195
cmd.Flags().StringSliceVarP(&extraKeys, "keyring-append", "k", []string{}, "path to extra keys to include in the build environment keyring")
194
196
cmd.Flags().StringSliceVarP(&extraRepos, "repository-append", "r", []string{}, "path to extra repositories to include in the build environment")
197
+
cmd.Flags().StringSliceVar(&extraPackages, "package-append", []string{}, "extra packages to install for each of the build environments")
195
198
cmd.Flags().BoolVar(&createBuildLog, "create-build-log", false, "creates a package.log file containing a list of packages that were built by the command")
196
199
cmd.Flags().BoolVar(&debug, "debug", false, "enables debug logging of build pipelines")
197
200
cmd.Flags().BoolVar(&debugRunner, "debug-runner", false, "when enabled, the builder pod will persist after the build succeeds or fails")
0 commit comments