Skip to content

Commit

Permalink
Set working directory as buildpack base directory (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
CGA1123 authored Nov 26, 2021
1 parent 8ff2d50 commit d1801e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions buildpack/buildpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (b *Buildpack) Compile(ctx context.Context, exports []*Buildpack, build *Bu

compileCmd := exec.CommandContext(ctx, "bash", "-c", strings.Join(commandParts, ";")) // #nosec G204
compileCmd.Env = environ(build)
compileCmd.Dir = filepath.Join(build.BuildDir, BuildpacksDir, b.Directory)
compileCmd.Stderr, compileCmd.Stdout = build.Stdout, build.Stderr
if err := compileCmd.Run(); err != nil {
return fmt.Errorf("failed to compile: %w", err)
Expand Down

0 comments on commit d1801e5

Please sign in to comment.