Skip to content

Commit

Permalink
🐛 Fix --no-cache not honored for description parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ewen-lbh committed Apr 22, 2024
1 parent b56c5ab commit f234fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ func (ctx *RunContext) Build(descriptionRaw string, outputFilename string, workI
hash := md5.Sum([]byte(descriptionRaw))
newDescriptionHash := base64.StdEncoding.EncodeToString(hash[:])

if oldWork, found := ctx.PreviouslyBuiltWork(workID); found && oldWork.DescriptionHash == newDescriptionHash {
if oldWork, found := ctx.PreviouslyBuiltWork(workID); found && oldWork.DescriptionHash == newDescriptionHash && !ctx.Flags.NoCache {
LogDebug("parsing description for %s: using cached work", workID)
work = oldWork
usedCache = true
Expand Down

0 comments on commit f234fef

Please sign in to comment.