with err exit

This commit is contained in:
Kasper Juul Hermansen 2022-10-31 00:35:40 +01:00
parent cb789bfa2e
commit e9e5d1e958
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -82,7 +82,12 @@ func (p *Pipeline) WithGolangBin(opts *GolangBinOpts) *Pipeline {
c = c.Exec(dagger.ContainerExecOpts{ c = c.Exec(dagger.ContainerExecOpts{
Args: []string{"mkdir", "-p", binpath}, Args: []string{"mkdir", "-p", binpath},
}) })
c, err := container.MountFileFromLoaded(ctx, c, bin, usrbin) _, err := c.ExitCode(ctx)
if err != nil {
return err
}
c, err = container.MountFileFromLoaded(ctx, c, bin, usrbin)
if err != nil { if err != nil {
return err return err
} }