teamwalnut / graphql-ppx

GraphQL language primitives for ReScript/ReasonML written in ReasonML
https://graphql-ppx.com
MIT License
257 stars 53 forks source link

Docker on the Apple Silicon Mac won't copy the ppx files and use Rosetta #279

Open JonoPrest opened 2 years ago

JonoPrest commented 2 years ago

Hi there,

I initially created this pull request then realising it is not as simple as just swapping out process.arch "arm64" for x64.

https://github.com/teamwalnut/graphql-ppx/pull/278

I am running into issues when using graphql-ppx with docker (in a linux container) running on an Mac M1-Pro chip. The copyPlatformBinaryInPlace.js will say that the platform is unsupported when infact Rosetta will run the linux-x64 ppx file perfectly fine. It would be great to have a solution for this.

Thanks!