Skip to content

Commit

Permalink
Merge pull request #35 from paketo-buildpacks/deterministic-ordering
Browse files Browse the repository at this point in the history
Reproducible Security Providers
  • Loading branch information
ekcasey authored Nov 11, 2020
2 parents 427189e + 04ee87d commit e94f1e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jre.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"
"os"
"path/filepath"
"sort"
"strings"

"github.com/buildpacks/libcnb"
Expand Down Expand Up @@ -133,6 +134,7 @@ func (j JRE) Contribute(layer libcnb.Layer) (libcnb.Layer, error) {
for k, v := range p.Map() {
providers = append(providers, fmt.Sprintf("%s|%s", k, v))
}
sort.Strings(providers)
layer.LaunchEnvironment.Default("BPI_JVM_SECURITY_PROVIDERS", strings.Join(providers, " "))

layer.LaunchEnvironment.Default("JAVA_HOME", layer.Path)
Expand Down

0 comments on commit e94f1e7

Please sign in to comment.