Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use locally built supergraph binary on M1 macbook #96

Open
benweatherman opened this issue Apr 6, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@benweatherman
Copy link
Contributor

benweatherman commented Apr 6, 2022

When I run scripts/install.sh and then try to compose a supergraph, I get an error

➜ rover supergraph compose --elv2-license accept --skip-update --config examples/basic/supergraph.yaml
error: Output from `/Users/itme/.rover/bin/supergraph-v2.0.0-preview.10 compose` was malformed.

Caused by:
    0: /Users/itme/.rover/bin/supergraph-v2.0.0-preview.10 compose output:
    1: EOF while parsing a value at line 1 column 0
        This error was unexpected! Please submit an issue with any relevant details about what you were trying to do: https://github.com/apollographql/rover/issues/new/choose

I can run the binary to get the version and it will tell me if I feed it an invalid YAML, but if once it gets to "real composition" I get an illegal hardware instruction

~/.rover/bin/supergraph-v2.0.0-preview.10 compose --version
supergraph-v2.0.0-preview.10-compose 2.0.0-preview.10

➜ ~/.rover/bin/supergraph-v2.0.0-preview.10 compose composition-tests/bonk.yaml 
{"Err":{"build_errors":[{"message":"Config for subgraph(s) [\"other\"] are not fully resolved. name, routing_url, and sdl must be present.","code":null,"type":"config"}]}}

➜ ~/.rover/bin/supergraph-v2.0.0-preview.10 compose composition-tests/bare.yaml
[1]    36549 illegal hardware instruction  ~/.rover/bin/supergraph-v2.0.0-preview.10 compose composition-tests/bare.yaml

NOTE: I've permanently disabled Gatekeeper by running sudo spctl --master-disable since we were investigating if it was related to apollographql/rover#398

@benweatherman benweatherman added the bug Something isn't working label Apr 6, 2022
dingxiangfei2009 pushed a commit to dingxiangfei2009/federation-rs that referenced this issue Jun 23, 2022
dingxiangfei2009 pushed a commit to dingxiangfei2009/federation-rs that referenced this issue Jun 23, 2022
Renamed --schema to --supergraph. Accept the -s shorthand for the cli.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant