Skip to content

Commit

Permalink
Override umask for stack.toml
Browse files Browse the repository at this point in the history
See if this fixes the error on the Linux runner.

Signed-off-by: Natalie Arellano <[email protected]>
  • Loading branch information
natalieparellano committed May 15, 2020
1 parent 7f65edd commit c44cbe0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/build/phases.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ func (l *Lifecycle) writeStackToml() (string, error) {
return "", errors.Wrapf(err, "writing stack.toml tempfile: %s", stackFile.Name())
}

// Override umask
if err = os.Chmod(stackFile.Name(), 0755); err != nil {
return "", errors.Wrapf(err, "overriding umask for stack.toml tempfile: %s", stackFile.Name())
}

// Some OSes (like macOS) use symlinks for the standard temp dir.
// Resolve it so it can be properly mounted by the Docker daemon.
return filepath.EvalSymlinks(stackFile.Name())
Expand Down

0 comments on commit c44cbe0

Please sign in to comment.