mirror of https://github.com/knative/func.git
fix: registry prompt result being ignored (#1268)
* fix: registry prompt result being ignored Signed-off-by: Matej Vasek <mvasek@redhat.com> * fixup Signed-off-by: Matej Vasek <mvasek@redhat.com> * fixup Signed-off-by: Matej Vasek <mvasek@redhat.com> Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
parent
74b57c2a65
commit
dfff8aa00a
|
@ -167,10 +167,15 @@ func runBuild(cmd *cobra.Command, _ []string, newClient ClientFactory) (err erro
|
|||
NewRegistryValidator(config.Path))); err != nil {
|
||||
return ErrRegistryRequired
|
||||
}
|
||||
done()
|
||||
client, done = newClient(ClientConfig{Verbose: config.Verbose},
|
||||
fn.WithRegistry(config.Registry),
|
||||
fn.WithBuilder(builder))
|
||||
defer done()
|
||||
fmt.Println("Note: building a function the first time will take longer than subsequent builds")
|
||||
} else {
|
||||
return ErrRegistryRequired
|
||||
}
|
||||
|
||||
return ErrRegistryRequired
|
||||
}
|
||||
|
||||
// This preemptive write call will be unnecessary when the API is updated
|
||||
|
|
Loading…
Reference in New Issue