refactor: use path/filepath instead of path for joining path parts

This commit is contained in:
Jose Diaz-Gonzalez
2020-10-10 17:24:31 -04:00
committed by Jose Diaz-Gonzalez
parent ff7429fd00
commit 943e032d12
2 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ import (
"bufio"
"fmt"
"os"
"path"
"path/filepath"
"github.com/dokku/dokku/plugins/common"
)
@@ -58,7 +58,7 @@ func TriggerPostExtract(appName string, sourceWorkDir string) {
return
}
buildpacksPath := path.Join(sourceWorkDir, ".buildpacks")
buildpacksPath := filepath.Join(sourceWorkDir, ".buildpacks")
file, err := os.OpenFile(buildpacksPath, os.O_RDWR|os.O_TRUNC|os.O_CREATE, 0600)
if err != nil {
common.LogFail(fmt.Sprintf("Error writing .buildpacks file: %s", err.Error()))