Skip to content

Commit

Permalink
remove Puppetfile caching feature for now #138
Browse files Browse the repository at this point in the history
  • Loading branch information
xorpaul committed Oct 1, 2019
1 parent 2f786a0 commit bc17d36
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions puppetfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,9 @@ func resolvePuppetEnvironment(tags bool, outputNameTag string) {
env := strings.Replace(strings.Replace(targetDir, sa.Basedir, "", 1), "/", "", -1)
syncToModuleDir(workDir, targetDir, branch, false, false, env)
pf := filepath.Join(targetDir, "Puppetfile")
deployFile := filepath.Join(targetDir, ".g10k-deploy.json")
if !fileExists(pf) {
Debugf("Skipping branch " + source + "_" + branch + " because " + targetDir + "Puppetfile does not exist")
} else {
if fileExists(deployFile) {
pfHashSum := getSha256sumFile(pf)
dr := readDeployResultFile(deployFile)
if pfHashSum == dr.PuppetfileChecksum && dr.DeploySuccess {
Infof("Skipping Puppetfile sync of branch " + source + "_" + branch + " because " + pf + " did not change")
dr.FinishedAt = time.Now()
writeStructJSONFile(deployFile, dr)
}
}
puppetfile := readPuppetfile(pf, sa.PrivateKey, source, sa.ForceForgeVersions, false)
puppetfile.workDir = normalizeDir(targetDir)
puppetfile.controlRepoBranch = branch
Expand Down

0 comments on commit bc17d36

Please sign in to comment.