Unable to pass `--path`flag to `pack build`
The pack
command has many possible flags that can be set to change behaviour, some of which are supported, but at least one is not. --path
is a flag I need to set to specify where the builder should look for the project files.
I don't currently see another easy way to specify it, or change paths before running pack in the AutoDevops configuration.
--builder "$builder" \
"${env_args[@]}" \
"${buildpack_args[@]}" \
"${volume_args[@]}" \
"${run_image[@]}" \
"${lifecycle_image[@]}" \
--env HTTP_PROXY \
--env http_proxy \
--env HTTPS_PROXY \
--env https_proxy \
--env FTP_PROXY \
--env ftp_proxy \
--env NO_PROXY \
--env no_proxy
src/build.sh#L71-85@5dac9a41028b7b05ddcf872e04e18a47d053e696
With the docker builder, we are able to pass arbitrary arguments to the process with AUTO_DEVOPS_BUILD_IMAGE_EXTRA_ARGS
and I would like to suggest that the same be done for pack. Potentially with a different var name so that it doesn't break current behaviour that takes the value for docker but ignores it for pack.
build_args=(
--cache-from "$image_previous"
--cache-from "$image_latest"
-f "$DOCKERFILE_PATH"
--build-arg BUILDPACK_URL="$BUILDPACK_URL"
--build-arg HTTP_PROXY="$HTTP_PROXY"
--build-arg http_proxy="$http_proxy"
--build-arg HTTPS_PROXY="$HTTPS_PROXY"
--build-arg https_proxy="$https_proxy"
--build-arg FTP_PROXY="$FTP_PROXY"
--build-arg ftp_proxy="$ftp_proxy"
--build-arg NO_PROXY="$NO_PROXY"
--build-arg no_proxy="$no_proxy"
$AUTO_DEVOPS_BUILD_IMAGE_EXTRA_ARGS
--tag "$image_tagged"
--tag "$image_latest"
)
src/build.sh#L124-140@5dac9a41028b7b05ddcf872e04e18a47d053e696