Skip to content

Commit a7ed200

Browse files
arschlesAaron Schlesinger
authored andcommitted
ref(build.go): name manifest file var more appropriately
and debug logging where it’s being written
1 parent 6e0de87 commit a7ed200

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pkg/gitreceive/build.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func build(conf *Config, builderKey, gitSha string) error {
244244
// sed -i -- "s#repo_name#$META_NAME#g" /etc/${SLUG_NAME}.yaml
245245
// sed -i -- "s#puturl#$PUSH_URL#g" /etc/${SLUG_NAME}.yaml
246246
// sed -i -- "s#tar-url#$TAR_URL#g" /etc/${SLUG_NAME}.yaml
247-
finalManifestFileName := fmt.Sprintf("/etc/%s", slugName)
247+
finalManifestFileLocation := fmt.Sprintf("/etc/%s", slugName)
248248
var buildPodName string
249249
var finalManifest string
250250
if usingDockerfile {
@@ -259,8 +259,9 @@ func build(conf *Config, builderKey, gitSha string) error {
259259
finalManifest = strings.Replace(finalManifest, "tar-url", tarURL, -1)
260260
}
261261

262-
if err := ioutil.WriteFile(finalManifestFileName, []byte(finalManifest), os.ModePerm); err != nil {
263-
return fmt.Errorf("writing final manifest %s (%s)", finalManifestFileName, err)
262+
log.Debug("writing builder manifest to %s", finalManifestFileLocation)
263+
if err := ioutil.WriteFile(finalManifestFileLocation, []byte(finalManifest), os.ModePerm); err != nil {
264+
return fmt.Errorf("writing final manifest %s (%s)", finalManifestFileLocation, err)
264265
}
265266

266267
//

0 commit comments

Comments
 (0)