Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ __pycache__

# The parse perf test repo
/tree

.vscode
6 changes: 6 additions & 0 deletions src/please.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,12 @@ var buildFunctions = map[string]func() int{
}
if opts.Hash.Update {
hashes.RewriteHashes(state, state.ExpandOriginalLabels())
} else {
// The code above will build the target(s) and unconditionally write to
// the cache. If we're not updating the hash, we need to clear the target(s)
// from the cache again to ensure that future builds depending on the
// target(s) are not able to proceed despite a potentially mismatched hash.
clean.Targets(state, state.ExpandOriginalLabels())
Comment thread
toastwaffle marked this conversation as resolved.
}
}
return toExitCode(success, state)
Expand Down
Loading