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

Remove unused method implementing From trait #114

Merged
merged 4 commits into from
Feb 9, 2024
Merged

Conversation

jlapeyre
Copy link
Collaborator

@jlapeyre jlapeyre commented Feb 9, 2024

This was used in an obsolete, experimental, pyo3 interface. Might be needed in the future, but not now.

Closes #76

This was used in an obsolete, experimental, pyo3 interface.
Might be needed in the future, but not now.

Closes #76
This restriction is not necessary to build these crates. But we want
to be compatible with rustc 1.70 for Qiskit compatibility. So we include
this restriction on clap version.

Let's see if this fixes the CI failure.
In the previous commit, we set the version of clap to 4.4.
But in CI, an attempt is still made to install clap 4.5. No idea
why. But I was fairly confident that the attempt to fix CI failure
would fail somehow.

Let's see what fixing the version to 4.4.15 does in CI.

I should note that I am building this locally on linux using
rust 1.70, which is our desired MSRV. And the version of clap
being used is 4.4.15. Why does CI try to install 4.5, even
for ubuntu?
@jlapeyre
Copy link
Collaborator Author

jlapeyre commented Feb 9, 2024

CI is failing because the an attempt to install clap v 4.5, which does not support MSRV 1.70 is made. This does not happen which I test locally with rustc v 1.70. It should not be failing here for two reasons.

  1. I pin clap to v 4.4.15. EDIT (no, I need to use tilde)
  2. clap is only a dev dependency. It should not be needed to run tests.

Yet it is failing.

Aha: I deleted Cargo.lock in the local build, and now I get a similar failure locally.

@jlapeyre
Copy link
Collaborator Author

jlapeyre commented Feb 9, 2024

I used tilde in version specifiers to actually cap versions of clap. I also added --tests and --libs flags to cargo test. This skips trying to build the demo code, which requires clap. Works great if if clap is removed from Cargo.toml files.

However, even if clap is only required as a dev-dependency, and I explicitly avoid searching for tests in example dirs, CI still insists on installing clap. This is wasteful, but at least succeeds if the version is capped.

@jlapeyre jlapeyre merged commit 23c2694 into main Feb 9, 2024
7 checks passed
@jlapeyre jlapeyre deleted the remove-from-symbolid branch February 9, 2024 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove method used by non-existent consumer
1 participant