Skip to content

Commit

Permalink
Updates github-config (#456)
Browse files Browse the repository at this point in the history
* Updating github-config

* Updating github-config

* Updating github-config

* Updating github-config

* Updating github-config

* enabling experimental features through options.json

---------

Co-authored-by: Costas Papastathis <[email protected]>
  • Loading branch information
paketo-bot and pacostas authored Mar 15, 2024
1 parent 206fa45 commit 951a3d5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions scripts/.syncignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
options.json
6 changes: 3 additions & 3 deletions scripts/.util/tools.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"createpackage": "v1.68.1",
"jam": "v2.7.0",
"pack": "v0.33.1"
"createpackage": "v1.68.2",
"jam": "v2.7.1",
"pack": "v0.33.2"
}
11 changes: 11 additions & 0 deletions scripts/.util/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ function util::tools::pack::install() {

version="$(jq -r .pack "$(dirname "${BASH_SOURCE[0]}")/tools.json")"

local pack_config_enable_experimental
if [ -f "$(dirname "${BASH_SOURCE[0]}")/../options.json" ]; then
pack_config_enable_experimental="$(jq -r .pack_config_enable_experimental "$(dirname "${BASH_SOURCE[0]}")/../options.json")"
else
pack_config_enable_experimental="false"
fi

tmp_location="/tmp/pack.tgz"
curl_args=(
"--fail"
Expand All @@ -158,6 +165,10 @@ function util::tools::pack::install() {
tar xzf "${tmp_location}" -C "${dir}"
chmod +x "${dir}/pack"

if [[ "${pack_config_enable_experimental}" == "true" ]]; then
"${dir}"/pack config experimental true
fi

rm "${tmp_location}"
else
util::print::info "Using pack $("${dir}"/pack version)"
Expand Down
1 change: 0 additions & 1 deletion scripts/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ function tests::run() {
util::print::title "Run Buildpack Runtime Integration Tests"
util::print::info "Using ${1} as builder..."

pack config experimental true
export CGO_ENABLED=0
pushd "${BUILDPACKDIR}" > /dev/null
if GOMAXPROCS="${GOMAXPROCS:-4}" go test -count=1 -timeout 0 ./integration/... -v -run Integration | tee "${2}"; then
Expand Down
3 changes: 3 additions & 0 deletions scripts/options.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pack_config_enable_experimental": true
}

0 comments on commit 951a3d5

Please sign in to comment.