11 Commits

Author SHA1 Message Date
Bo Anderson
1fba9b9b53
Prevent loading all non-Bundler gems 2021-02-26 18:23:48 +00:00
Mike McQuaid
60876eed88
Improve Bootsnap behaviour
- further refactor nested conditional to make it clearer
- allow running on Linux while still excluding Apple Silicon
- only warn on `bundle install` failures
2021-02-25 15:59:17 +00:00
Mike McQuaid
634efba261
homebrew_bootsnap: require some developer tools.
Do a very basic developer tools check to ensure that we can compile
things. We cannot use `DevelopmentTools.installed?` because this has
much higher speed requirements and needs to be run before we `require`
anything else.
2021-02-24 16:49:06 +00:00
Mike McQuaid
cdbc1d43a6
homebrew_bootsnap: fail more gracefully.
If `bootsnap` isn't available then print out an error message rather
than failing all of Homebrew.
2021-02-05 15:43:55 +00:00
Mike McQuaid
7f6f915178
homebrew_bootsnap: disable on ARM.
From https://github.com/Homebrew/homebrew-core/pull/70310/checks?check_run_id=1823920962
this looks very broken indeed.
2021-02-03 17:39:15 +00:00
Mike McQuaid
4355f7cf25
homebrew_bootsnap: use utils/gems.
This is more robust e.g. if we don't have a `bundler` already installed.
2021-02-02 13:51:09 +00:00
Mike McQuaid
89fc131422
Gemfile: install bootsnap.
And allow type checking of `homebrew_bootsnap.rb`.
2021-02-02 12:34:15 +00:00
Mike McQuaid
7912b1e043
homebrew_bootsnap: various improvements.
- Add `HOMEBREW_NO_BOOTSNAP` as well as `HOMEBREW_BOOTSNAP`
- Guard the whole file rather than `raise` on inclusion.
- Use `HOMEBREW_CACHE` instead of `HOMEBREW_TEMP`
- Don't try to use Bootsnap with macOS portable ruby
2021-02-02 12:33:57 +00:00
Mike McQuaid
b33a24feb0
homebrew_bootsnap: remove deprecated option.
Otherwise this prints a warning.
2021-02-02 10:29:30 +00:00
Mike McQuaid
85923ae711
homebrew_bootsnap: fix brew tests.
Use one of the possible temp variables and `raise` if not.
2021-01-25 10:54:33 +00:00
Mike McQuaid
dad1939142
Fix HOMEBREW_BOOTSNAP setup
- rename to `homebrew_bootsnap.rb` to avoid conflicting with the
  `bootsnap.rb` we need to `require`
- if the `require` fails: run bundler (until we vendor this gem)
2021-01-21 17:35:13 +00:00