-
Notifications
You must be signed in to change notification settings - Fork 194
Support installing tools via Homebrew (take 2) #474
Conversation
can we hide this whole process behind some environment variable? |
run-build-functions.sh
Outdated
if [ -f Brewfile.netlify ] || [ ! -z "$HOMEBREW_BUNDLE_FILE" ] | ||
then | ||
echo "Installing Homebrew dependencies from ${HOMEBREW_BUNDLE_FILE:-Brewfile.netlify}" | ||
brew bundle --file Brewfile.netlify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not sure what happens here if you set HOMEBREW_BUNDLE_FILE
to something custom.
what do you think about making Brewfile.netlify
a default value for HOMEBREW_BUNDLE_FILE
inside the if and remove the --file
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah.
4ad3055
to
a67ca32
Compare
Mainly for allowing native node modules to use homebrew stuff
That way we can test this experiment without breaking builds for people that already have Brewfile in their sites. Signed-off-by: David Calavera <david.calavera@gmail.com>
Signed-off-by: David Calavera <david.calavera@gmail.com>
Signed-off-by: David Calavera <david.calavera@gmail.com>
a67ca32
to
55d0b61
Compare
To see if that's the real issue crashing CI. Signed-off-by: David Calavera <david.calavera@gmail.com>
According to our logs, nobody has ever used it. Signed-off-by: David Calavera <david.calavera@gmail.com>
Is there anything needed here before we can review and merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not too sure about removing wasmer in this PR.
I was not able to find any evidence of anyone using it in the last 7 days directly, but i'm unsure.
I'd defer this decision to the team
This PR is blocking me personally for a month now (other people for longer). I think if people really want WASMER you either need to upgrade your ubuntu image or contact the people from WASMER and ask them to compile with an older version of GLIBC. |
We need to do it anyways, and this is the last PR that actually passes CI because wasmer doesn't work anymore, so I'm all for merging both and move on. It really have never been used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool with me.
Update: we have actually fixed Wasmer in PS: if you need I can update the binary manually so it's also fixed when you install Wasmer I'd recommend you to keep Wasmer, super cool things are coming in the next weeks! |
people will be able to install wasmer when needed via homebrew, and update to newer versions when they want instead of depending on us to keep up with new releases. |
Yeah, that's a great alternative. Although being able to cache wasmer artifacts independently in-between builds will make a bit of a difference in the future! |
I made #477 because I'm wasting a lot of build time downloading Rust at every build. Does installing via homebrew would solve that? |
@cecton thanks for adding the Rust PR, we can look into supporting that as part of our build image, but meanwhile, as soon as this PR is released, you'd be able to install Rust via homebrew which should help. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks for making the change
@mraerino opened a PR to support homebrew long time ago (#411). We discovered that some people had Brewfile files in their sites and this integration broke their builds because we were trying to install packages that were not necessary.
Supporting homebrew is a great idea, and I'd like to bring this feature back. In order to not break builds again, I renamed the
Brewfile
toBrewfile.netlify
. I'd expect no breaking changes since I just made this up.