Skip to content

Commit

Permalink
WithBinaryCommandsOpts
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Koch <[email protected]>
  • Loading branch information
hugelgupf committed Feb 15, 2024
1 parent c899e87 commit eb16bf6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions uimage/uimage.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,14 @@ func WithBinaryCommands(cmd ...string) Modifier {
return WithCommands(nil, builder.Binary, cmd...)
}

// WithBinaryCommandsOpts adds Go commands to compile as individual binaries
// and add to the archive.
//
// Allowed formats for cmd are documented in [WithCommands].
func WithBinaryCommandsOpts(gbOpts *golang.BuildOpts, cmd ...string) Modifier {
return WithCommands(bbOpts, builder.Binary, cmd...)

Check failure on line 386 in uimage/uimage.go

View workflow job for this annotation

GitHub Actions / Build and test (1.21.x, ubuntu-latest)

undefined: bbOpts

Check failure on line 386 in uimage/uimage.go

View workflow job for this annotation

GitHub Actions / Race test (1.21.x, ubuntu-latest)

undefined: bbOpts

Check failure on line 386 in uimage/uimage.go

View workflow job for this annotation

GitHub Actions / Cross-platform builds (1.21.x)

undefined: bbOpts

Check failure on line 386 in uimage/uimage.go

View workflow job for this annotation

GitHub Actions / Build and test (1.22.x, ubuntu-latest)

undefined: bbOpts

Check failure on line 386 in uimage/uimage.go

View workflow job for this annotation

GitHub Actions / Race test (1.22.x, ubuntu-latest)

undefined: bbOpts

Check failure on line 386 in uimage/uimage.go

View workflow job for this annotation

GitHub Actions / Cross-platform builds (1.22.x)

undefined: bbOpts
}

// WithOutput sets the archive output file.
func WithOutput(w initramfs.WriteOpener) Modifier {
return func(o *Opts) error {
Expand Down

0 comments on commit eb16bf6

Please sign in to comment.