Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Fix regression in build not prompting for install
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Shepherd <darren@acorn.io>
  • Loading branch information
ibuildthecloud committed Oct 16, 2022
1 parent 6cfda6e commit 4fcd945
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/client/ignore.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,15 @@ func (c IgnoreUninstalled) BuilderDelete(ctx context.Context) (*apiv1.Builder, e
}

func (c IgnoreUninstalled) BuilderDialer(ctx context.Context) (func(ctx context.Context) (net.Conn, error), error) {
return c.client.BuilderDialer(ctx)
return promptInstall(ctx, func() (func(context.Context) (net.Conn, error), error) {
return c.client.BuilderDialer(ctx)
})
}

func (c IgnoreUninstalled) BuilderRegistryDialer(ctx context.Context) (func(ctx context.Context) (net.Conn, error), error) {
return c.client.BuilderRegistryDialer(ctx)
return promptInstall(ctx, func() (func(context.Context) (net.Conn, error), error) {
return c.client.BuilderRegistryDialer(ctx)
})
}

func (c IgnoreUninstalled) CredentialCreate(ctx context.Context, serverAddress, username, password string) (*apiv1.Credential, error) {
Expand Down

0 comments on commit 4fcd945

Please sign in to comment.