Skip to content

Commit

Permalink
Close paketo-buildpacks#220: Use path separator
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Mikusa <dan@mikusa.com>
  • Loading branch information
anthonydahanne and dmikusa committed Mar 10, 2023
1 parent 2a785bb commit dc89432
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion native/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"errors"
"fmt"
"github.com/paketo-buildpacks/libpak/sherpa"
"os"
"path/filepath"

"github.com/paketo-buildpacks/libpak/effect"
Expand Down Expand Up @@ -115,7 +116,7 @@ func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error) {
return libcnb.BuildResult{}, fmt.Errorf("unable to find required manifest property\n%w", err)
}

command := "./" + startClass
command := fmt.Sprintf("%c%c%s", '.', os.PathSeparator, startClass)
result.Processes = append(result.Processes,
libcnb.Process{Type: "native-image", Command: command, Direct: true},
libcnb.Process{Type: "task", Command: command, Direct: true},
Expand Down

0 comments on commit dc89432

Please sign in to comment.