Skip to content

Commit

Permalink
fix: build no cache source code failure
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail committed Dec 10, 2024
1 parent ee98bd6 commit 997d24f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions builder/exector/build_from_sourcecode_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,6 @@ func (i *SourceCodeBuildItem) prepare() error {
return err
}
if _, ok := i.BuildEnvs["NO_CACHE"]; ok {
if !util.DirIsEmpty(i.RepoInfo.GetCodeHome()) {
os.RemoveAll(i.RepoInfo.GetCodeHome())
}
if err := os.RemoveAll(i.CacheDir); err != nil {
logrus.Error("remove cache dir error", err.Error())
}
Expand Down

0 comments on commit 997d24f

Please sign in to comment.