facebook / facebook/relay

Schema extensions are ignored on MacOS, but not on Linux

Open
#4,557 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

It looks like schema extensions are ignored on Mac, but not on Linux (x64). Is there a workaround?

## Steps to reproduce

* Clone https://github.com/rbalicki2/relay-test
* `yarn && yarn relay`

On Mac (platform: darwin, arch: arm64), this fails to compile, due to a missing field. On Linux (platform: linux, arch: x64), this successfully compiles.

The contents of the schema extension file can be arbitrary on Mac; it is never even parsed. However, it must exist.

Thank you!

Contributor guide

Open the contributing guide

Research direction

Clone https://github.com/rbalicki2/relay-test and run `yarn && yarn relay` on macOS arm64 and Linux x64 to reproduce the platform difference. Start by tracing the Relay compiler entry point used by `yarn relay` and how it loads the schema extension file. Done means the extension is parsed and applied consistently on both platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.