Skip to content

Commit

Permalink
fix: WITH DOCKER --cache-id used wrong feature flag (#4189)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Couture-Beil <[email protected]>
  • Loading branch information
alexcb authored Jun 10, 2024
1 parent 95851ea commit 49b6f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion earthfile2llb/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ func (i *Interpreter) handleWithDocker(ctx context.Context, cmd spec.Command) er
})
}
if opts.CacheID != "" {
if !i.converter.ftrs.PassArgs {
if !i.converter.ftrs.DockerCache {
return i.errorf(cmd.SourceLocation, "the WITH DOCKER --cache-id flag must be enabled with the VERSION --docker-cache feature flag.")
}
i.withDocker.CacheID = opts.CacheID
Expand Down

0 comments on commit 49b6f03

Please sign in to comment.