Skip to content

Commit

Permalink
fix: importing default values from extension
Browse files Browse the repository at this point in the history
  • Loading branch information
pacostas committed Sep 13, 2024
1 parent 7a42902 commit 12023c1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ import (
"strings"
"text/template"

ubinodejsextension "github.com/paketo-community/ubi-nodejs-extension"
"github.com/paketo-community/ubi-nodejs-extension/structs"

"github.com/BurntSushi/toml"
)

var DEFAULT_USER_ID = 1002
var DEFAULT_GROUP_ID = 1000

//go:embed templates/build.Dockerfile
var buildDockerfileTemplate string

Expand Down Expand Up @@ -158,8 +156,8 @@ func ParseImagesJsonFile(imagesJsonPath string) (ImagesJson, error) {
func GetDuringBuildPermissions(filepath string) structs.DuringBuildPermissions {

defaultPermissions := structs.DuringBuildPermissions{
CNB_USER_ID: DEFAULT_USER_ID,
CNB_GROUP_ID: DEFAULT_GROUP_ID,
CNB_USER_ID: ubinodejsextension.DEFAULT_USER_ID,
CNB_GROUP_ID: ubinodejsextension.DEFAULT_GROUP_ID,
}
re := regexp.MustCompile(`cnb:x:(\d+):(\d+)::`)

Expand Down

0 comments on commit 12023c1

Please sign in to comment.