Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly (locally) test Node architecture fallback
Previously, since we were testing against a version spec of `1.2.3`, we were failing on local Apple Silicon builds because our test expectations looked for the correct (`arm64`) string, but the version check we use to avoid incorrectly trying to install non-Apple Silicon-compatible Node versions without Rosetta meant we ended up in the fallback path. Update the existing tests to use versions which will get `arm64` when run on an Apple Silicon machine, and add additional tests behind a `#[cfg(...)]` check for `macos-aarch64` to confirm the fallback works correctly. Note that these new tests will *only* run locally at present, since we do not yet have Apple Silicon runners on GitHub, but if/when we can add those, they will run automatically there. This path should also become less important over time as more and more of the mac ecosystem moves to Apple Silicon, but is valuable for as long as we support Intel Macs. Co-authored-by: Rob Jackson <me@rwjblue.com>
- Loading branch information