Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ bazel-zoekt
bazel-src-cli
.DS_Store
samples
.amp
4 changes: 4 additions & 0 deletions cmd/src/batch_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ func executeBatchSpec(ctx context.Context, opts executeBatchSpecOpts) (err error
}
execUI.ParsingBatchSpecSuccess()

if batchSpec.Version == 3 {
return errors.New("batch spec version 3 is not supported for local execution, please run server-side")
}

execUI.ResolvingNamespace()
namespace, err := svc.ResolveNamespace(ctx, opts.flags.namespace)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/batches/service/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ version: 99
name: test-spec
description: A test spec
`,
expectedErr: errors.New("parsing batch spec: version: version must be one of the following: 1, 2"),
expectedErr: errors.New("parsing batch spec: version: version must be one of the following: 1, 2, 3"),
},
{
name: "mount absolute file",
Expand Down
2 changes: 1 addition & 1 deletion lib/batches/schema/batch_spec_stringdata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading