mirror of
https://github.com/ko-build/ko.git
synced 2025-07-15 23:54:17 +02:00
Always use "strict" mode
We dropped this flag, so we're always in non-strict mode by default, so if there is a ko:// reference that fails to build, we don't error out. This drops some guards so that we are always in strict mode and only build ko:// things.
This commit is contained in:
@ -27,7 +27,6 @@ func addResolve(topLevel *cobra.Command) {
|
||||
po := &options.PublishOptions{}
|
||||
fo := &options.FilenameOptions{}
|
||||
so := &options.SelectorOptions{}
|
||||
sto := &options.StrictOptions{}
|
||||
bo := &options.BuildOptions{}
|
||||
|
||||
resolve := &cobra.Command{
|
||||
@ -66,7 +65,7 @@ func addResolve(topLevel *cobra.Command) {
|
||||
log.Fatalf("error creating publisher: %v", err)
|
||||
}
|
||||
defer publisher.Close()
|
||||
if err := resolveFilesToWriter(ctx, builder, publisher, fo, so, sto, os.Stdout); err != nil {
|
||||
if err := resolveFilesToWriter(ctx, builder, publisher, fo, so, os.Stdout); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user