Skip to content

Commit ce9fab4

Browse files
authored
ref: no brew bundle on non-macos (#205)
1 parent 64dc10a commit ce9fab4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

devenv/fetch.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,23 @@ def main(context: Context, argv: Sequence[str] | None = None) -> ExitCode:
3737
]:
3838
fetch(code_root, "getsentry/sentry", auth=CI is None, sync=False)
3939

40-
print("Installing sentry's brew dependencies...")
41-
if CI:
42-
if DARWIN:
40+
if DARWIN:
41+
print("Installing sentry's brew dependencies...")
42+
if CI:
4343
# Installing everything from brew takes too much time,
4444
# and chromedriver cask flakes occasionally. Really all we need to
4545
# set up the devenv is colima and docker-cli.
4646
# This is also required for arm64 macOS GHA runners.
4747
# We manage colima, so just need to install docker + qemu here.
4848
proc.run(("brew", "install", "docker", "qemu"))
49+
else:
50+
proc.run(
51+
(f"{homebrew_bin}/brew", "bundle"),
52+
cwd=f"{code_root}/sentry",
53+
)
4954
else:
50-
proc.run(
51-
(f"{homebrew_bin}/brew", "bundle"), cwd=f"{code_root}/sentry"
55+
print(
56+
"Not on MacOS; assuming you have a docker cli and runtime installed."
5257
)
5358

5459
proc.run(

0 commit comments

Comments
 (0)