Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

[Fix] - Searching only for run.sh on docker pre run #598

Merged
merged 2 commits into from
Oct 21, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions pkg/formula/formula.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ func (d *Definition) TmpWorkDirPath(home string) string {
return filepath.Join(home, TmpDir, u)
}

func (d *Definition) UnixBinFilePath(fPath string) string {
return filepath.Join(fPath, BinDir, BinUnix)
}

// BinFilePath builds the bin file path from formula path
func (d *Definition) BinFilePath(fPath string) string {
return filepath.Join(fPath, BinDir, d.BinName())
Expand Down
2 changes: 1 addition & 1 deletion pkg/formula/runner/docker/pre_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (pr PreRunManager) PreRun(def formula.Definition) (formula.Setup, error) {
return formula.Setup{}, err
}

binFilePath := def.BinFilePath(formulaPath)
binFilePath := def.UnixBinFilePath(formulaPath)
if !pr.file.Exists(binFilePath) {
s := spinner.StartNew("Building formula...")
time.Sleep(2 * time.Second)
Expand Down