Closed kwlockwo closed 1 year ago
Pretty sure this is not the only instance of a variable having this issue. LD_LIBRARY_PATH
will also have the same problem.
I opened #12 last week which fixes $PATH at least. I think you're right that LD_LIBRARY_PATH (and LD_RUN_PATH and LIBRARY_PATH) will all get clobbered though I'm not sure how common those are.
I have seen LIBRARY_PATH
used, LD_RUN_PATH
not so much. Should be escaped all the same.
There's a larger issue where the PATH from build time are being picked up and preserved into runtime even though the two have different path structures https://github.com/rails-sqlserver/heroku-buildpack-freetds/issues/17
@metaskills I think this issue is collecting some good potential collaborators :) Anyone want commit?
https://github.com/rails-sqlserver/heroku-buildpack-freetds/blob/master/bin/compile#L86
$PATH
should be escaped otherwise the PATH expanded at the .profile.d script is created rather than when the script runs on the dyno booting.This is causing the
PATH
to be set at the time the.profile.d
the script runs to be lost.