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

Migrate from clap 3.1.18 to 3.2 #1231

Closed
o0Ignition0o opened this issue Jun 14, 2022 · 0 comments · Fixed by #1395
Closed

Migrate from clap 3.1.18 to 3.2 #1231

o0Ignition0o opened this issue Jun 14, 2022 · 0 comments · Fixed by #1395
Assignees
Labels

Comments

@o0Ignition0o
Copy link
Contributor

A minor release of clap happened yesterday, which changes the behavior or argument matching and leads plugin writers to hit an error when they run:

ignition@ignition-apollo test % cargo r -- --supergraph ./local.graphql 
    Finished dev [unoptimized + debuginfo] target(s) in 0.42s
     Running `target/debug/router --supergraph ./local.graphql`
thread 'main' panicked at 'Must use `_os` lookups with `Arg::allow_invalid_utf8` at `supergraph-path`', /Users/ignition/.cargo/git/checkouts/router-18de2f110854a520/dfbfea0/apollo-router/src/executable.rs:314:49
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

We are working around this by pinning the dependency to clap = "3.1.18" but we need to find the root cause and address it.

o0Ignition0o added a commit that referenced this issue Jun 14, 2022
Workaround against #1231

A minor release of Clap occured yesterday; which introduced a breaking change.

This might lead cargo scaffold users to hit a panic a runtime when the router tries to parse env variables and arguments.

This patch Pins the clap dependency to the version that was available before the release, until the root cause is found and fixed.
o0Ignition0o added a commit that referenced this issue Jun 14, 2022
Workaround against #1231

A minor release of Clap occured yesterday; which introduced a breaking change.

This might lead cargo scaffold users to hit a panic a runtime when the router tries to parse env variables and arguments.

This patch Pins the clap dependency to the version that was available before the release, until the root cause is found and fixed.
@Geal Geal self-assigned this Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants