Skip to content

Commit 7e5c190

Browse files
committed
fix
1 parent 65ca47c commit 7e5c190

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ bazel-zoekt
1414
bazel-src-cli
1515
.DS_Store
1616
samples
17+
.amp

internal/batches/service/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ func validateMount(batchSpecDir string, spec *batcheslib.BatchSpec) error {
526526
return nil
527527
}
528528

529-
const exampleSpecTmpl = `version: 2 # Use the latest schema version
529+
const exampleSpecTmpl = `version: 3 # Use the latest schema version
530530
name: NAME-OF-YOUR-BATCH-CHANGE
531531
description: DESCRIPTION-OF-YOUR-BATCH-CHANGE
532532

internal/batches/service/service_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,12 @@ some-new-field: Foo bar
268268
{
269269
name: "supported version",
270270
rawSpec: `
271-
version: 2
271+
version: 3
272272
name: test-spec
273273
description: A test spec
274274
`,
275275

276-
expectedSpec: &batcheslib.BatchSpec{Version: 2, Name: "test-spec", Description: "A test spec"},
276+
expectedSpec: &batcheslib.BatchSpec{Version: 3, Name: "test-spec", Description: "A test spec"},
277277
},
278278
{
279279
name: "unsupported version",
@@ -282,7 +282,7 @@ version: 99
282282
name: test-spec
283283
description: A test spec
284284
`,
285-
expectedErr: errors.New("parsing batch spec: version: version must be one of the following: 1, 2"),
285+
expectedErr: errors.New("parsing batch spec: version: version must be one of the following: 1, 2, 3"),
286286
},
287287
{
288288
name: "mount absolute file",

0 commit comments

Comments
 (0)