Closed obfuscoder closed 6 years ago
There is the parameter --env which allows me to et addition env variables when calling buildpack. Is there a specific reason for using a clean env when calling buildpack?
Yes, pkgr
uses a clean env to avoid any pollution from the current environment, typically to avoid any existing ruby version on the system to be picked up while running the buildpack.
You should indeed use the --env
flag to pass any env variables that need to be used by the subprocesses.
Our build environment is only able to access the internet via proxies.
The environment variables http_proxy, htts_proxy and no_proxy are defined so that curl, bundler and wget can access the internet as needed.
However, building the debian package with
pkgr package
fails at the following step:Ater 4 retries the process aborts.
When enabling the
--debug
option I can see the following output when triggering the heroku-ruby-buildpack:My assumption is that pkgr initiates the buildpack without transfering the environment from the current process to the buildpack. To verify my assumption, I tried to inject some debugging output into a fork of the buildpack used by pkgr for ruby projects, but encountered some problems.