GCS custom download strategy can't find binaries in PATH #5131
Unanswered
husseinferas
asked this question in
Tap maintenance and brew development
Replies: 1 comment 5 replies
-
Brew filters out the path for almost all commands, since it would impact builds if you have a binary called |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My custom download strategy
Output of
brew install --formula -d -v --build-from-source ./Formula/lvh.rb
Description of issue
I'm hosting the binary in the GCS bucket because I want to control the permissions in GCP. I've written this custom download strategy that runs
gsutil
command to download the binary, which works perfectly except for one breaking issue:it can't find the
gsutil
binary unless we provide the full path for the binary, now this is a problem because the path forgsutil
is different from one user to another, if you use brew to installgsutil
, then it is predictable at/opt/homebrew/bin/gsutil
but not all users usebrew
to in install it, in google docs it the users the freedom to choose the binary locationI've tried many methods and all of them didn't work
/bin/bash -c 'gsutil cp ...'
which
orwhere
commands to find the binaryexec
,system
andcommand!
it looks like inside the download strategy it can't read the
PATH
for the userI'm not a ruby expert so maybe I missed something obvious
Output of
brew config
Beta Was this translation helpful? Give feedback.
All reactions