-
Notifications
You must be signed in to change notification settings - Fork 11
Cannot test compile step using gcc on new stack heroku-16 #15
Comments
I can only recommend two suboptimal solutions:
Let us know if either of these works for you. |
Thanks for the quick reply. For my use case, running scripts manually on my local machine was sufficient. I partly opened this for awareness in case others hit this error. Agreed there is not straightforward solution. Looks like the Docker approach will work because it is still based on cedar-14, if it gets updated to herkou-16 I would expect it to also break. The apt buildpack is a good idea, I'd be happy to try it if it would be useful feedback. Otherwise feel free to close, this issue will at provide some workarounds if anyone else hits the problem and searches for a solution. |
I also tryed the apt buildpack solution installing maybe some security restrictions? |
@cbertozzi can you check that |
I SSH into dyno using ps:exec and then i moved into /app/.apt/usr/bin to
call gcc from there but It raise the `command not found` error
Il 15/nov/2017 17:51, "Joe Kutner" <notifications@github.com> ha scritto:
… @cbertozzi <https://github.com/cbertozzi> can you check that gcc is on
the path? maybe with heroku run bash?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAeCM7kRoHHmald4uozFR0e0NBULulFAks5s2xZ9gaJpZM4OdGKk>
.
|
after a debug session with Heroku guys we found a working solution.
and then append |
We publish two variants of the Heroku-16 image:
The latter is what our build environment uses. |
The new heroku-16 stack actually has a different set of packages installed at buildtime vs runtime. Things like gcc are missing at runtime when this buildpack goes to run tests, so a pack that actually does compilation in
compile
can fail when run in this test harness even if it may work fine when used as an actual buildpack.Example error message from
heroku run tests
with a buildpack that compiles C code.The only fix I can think of is to run tests in the
compile
step, but that has downsides.The text was updated successfully, but these errors were encountered: