Page MenuHomePhabricator

[native] Fix Buildkite iOS build to work from inside Nix
ClosedPublic

Authored by ashoat on Feb 20 2023, 10:47 AM.
Tags
None
Referenced Files
F5122325: D6785.id22737.diff
Thu, Apr 3, 1:17 PM
F5122324: D6785.id22736.diff
Thu, Apr 3, 1:17 PM
F5120259: D6785.id22733.diff
Thu, Apr 3, 7:27 AM
Unknown Object (File)
Wed, Apr 2, 4:08 PM
Unknown Object (File)
Wed, Apr 2, 4:08 PM
Unknown Object (File)
Wed, Apr 2, 4:08 PM
Unknown Object (File)
Thu, Mar 20, 5:06 AM
Unknown Object (File)
Tue, Mar 18, 12:32 AM
Subscribers

Details

Summary

We need the same patch we use in native/package.json for yarn react-native and yarn expo.

Test Plan

Let's see if this diff's Buildkite build succeeds :)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Feb 20 2023, 10:50 AM

Move $PATH hack to package.json. I suspect Buildkite is doing something wonky

Seeing this issue because macOS's cp command is in /bin, and so we end up using the GNU one instead

This revision updates us to prefix $PATH with not just /usr/bin, but also /bin, so that we have access to BSD cp

It worked! Adding /bin to all of the places we prefix /usr/bin for future-proofing

This revision is now accepted and ready to land.Feb 20 2023, 11:53 AM