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

fix: build with versioned schemas #973

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

EverlastingBugstopper
Copy link
Contributor

fixes #967

this commit removes the usage of APOLLO_GRAPHQL_SCHEMA_URL by
cargo xtask dist --version since it just didn't work.

now, all versions are built by downloading their schema from the GitHub
repository if the first build fails.

additionally, schemas are now built and versioned with the cargo xtask package --copy-schema
command, which is now executed properly in CircleCI, meaning future releases should include the schema as part of the build process, and running cargo xtask dist --version should work for future releases.

this commit removes the usage of `APOLLO_GRAPHQL_SCHEMA_URL` by
`cargo xtask dist --version` since it just didn't work.

now, all versions are built by downloading their schema from the GitHub
repository if the first build fails.

additionally, schemas are now built and versioned with the `cargo xtask package --copy-schema`
command, which is now executed properly in CircleCI.
@EverlastingBugstopper EverlastingBugstopper merged commit 9fd4781 into main Jan 25, 2022
@EverlastingBugstopper EverlastingBugstopper deleted the avery/fixup-schema-build branch January 25, 2022 20:21
@EverlastingBugstopper EverlastingBugstopper added this to the 0.4.2 milestone Feb 11, 2022
@EverlastingBugstopper EverlastingBugstopper self-assigned this Feb 11, 2022
This was referenced Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build fails with the recent schema from Apollo
1 participant