-
Notifications
You must be signed in to change notification settings - Fork 737
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
Workaround CLI argument parsing issue #1096
Workaround CLI argument parsing issue #1096
Conversation
Re-opening PR, accidentally deleted branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good find! Just a couple minor things - if you're swamped let me know, I can merge and fix it in post
@sfoulston D'oh! I merged your other PR and there's now a merge conflict - can you take a look at that when you have a chance? Otherwise this is good to go. |
No worries, just coincidence my two PRs touched the same bit of code! Have resolved & merged. |
Due to an underlying issue with the Oclif framework that the Apollo CLI uses, the
schema:download
command (at least) fails when--header
arguments are not placed at the end of the command, such as when specifying a non-default output path. The ApolloCodegenLib places the output path after the header argument, so the schema download always fails.This PR just moves the header argument to the end of the bash command by reordering the array of arguments in
ApolloSchemaOptions#arguments
.See also:
apollographql/apollo-tooling#844 (comment)