chore: handle batch spec v3 by bahrmichael · Pull Request #1306 · sourcegraph/src-cli · GitHub
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
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
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