Fixes #2046: make target stage lookup case insensitive (#2047)

This commit is contained in:
François JACQUES
2022-04-12 09:54:14 -04:00
committed by GitHub
parent f930b75b8b
commit f9c5745c63
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ func targetStage(stages []instructions.Stage, target string) (int, error) {
return len(stages) - 1, nil
}
for i, stage := range stages {
if stage.Name == target {
if strings.EqualFold(stage.Name, target) {
return i, nil
}
}