Skip to content

Commit 809ae6f

Browse files
committed
fix: return invalid image format
1 parent 532dd82 commit 809ae6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/pkg/labels/labels.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ func (l Labels) PickPlatform(runsOn []string) string {
7575
// ["with-gpu"] => "linux:with-gpu"
7676
// ["ubuntu-22.04", "with-gpu"] => "ubuntu:22.04_with-gpu"
7777

78-
// return default.
78+
// return invalid.
7979
// So the runner receives a task with a label that the runner doesn't have,
8080
// it happens when the user have edited the label of the runner in the web UI.
8181
// TODO: it may be not correct, what if the runner is used as host mode only?
82-
return ""
82+
return "invalid"
8383
}
8484

8585
func (l Labels) Names() []string {

0 commit comments

Comments
 (0)