Skip to content

Commit 1941038

Browse files
Ignore resolving scratch and context images (#37)
Signed-off-by: Kathryn Baldauf <[email protected]>
1 parent 5c5c168 commit 1941038

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/build/frontend.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ func resolveStates(ctx context.Context, bopts *BOpts, platform ocispecs.Platform
141141
return
142142
}
143143

144+
if strings.EqualFold(resolvedBaseStageName.Result, "scratch") || strings.EqualFold(resolvedBaseStageName.Result, "context") {
145+
return
146+
}
147+
144148
ref, err := dref.ParseAnyReference(resolvedBaseStageName.Result)
145149
if err != nil {
146150
if err == reference.ErrObjectRequired {

0 commit comments

Comments
 (0)