-
Notifications
You must be signed in to change notification settings - Fork 71
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
Replace structopt by clap (#155) #188
Replace structopt by clap (#155) #188
Conversation
@theredfish from clap-rs/clap#2869 it seems they'll wait a month before making release candidate stable. I'd opt to finish this PR and merge it now. Either way we'll introduce a bc break switching to stable Also, way we may first release an rc version too. |
Ok perfect @tyranron , I have some failing jobs that are connected to clap itself. I will check the error and see if I can do anything. |
@tyranron what is exactly the need of building with minimal versions for transitive dependencies there? I'm not used to this so any details could help me. This dependency of clap doesn't contain the function |
@theredfish your PR is fine, but there is a problem with UPD: should be fixed by clap-rs/clap#3172 which is waiting for crate-ci/escargot#53 |
To ensure that minimal versions are specified correctly, so the code will actually compile for the range versions declared in the manifest. Due to the ecosystem mostly not doing this check from the start (so their manifests are oftenly broken), sometimes we have such inconveniences with transitive dependencies. So we're trying to fix them where we can. Usually, these are non-blockers, as you always can temporary pin-point the version of bad transitive dependency in your crate's manifest. |
Ok great ! Thank you for your help and the explanations. I will wait for the merge and the new RC version of clap 👌. |
@theredfish fix for |
13e4919
to
9bf9fe8
Compare
I suppose that I'm hitting a cache, because it doesn't make sense and I don't have the same number of lines. Seems to correspond to a line in Edit : or maybe this is a merge pipeline so it's running my code with main, it would make sense. It should be fixed by rebasing. |
9bf9fe8
to
47cb6db
Compare
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.
@theredfish thanks! 🍻
@theredfish would you be so kind to make this PR editable for maintainers, so I can push some changes before merging it? |
Done! Btw I don't really know if we should or not activate this by default. I thought it was some kind of protection for the commits, to avoid for example the history to be rewritten. But I don't really know if it's for this or not. |
@theredfish thanks! I usually do use it al the time for maintainers being able to pick up and adjust the stuff. I cannot recall any situations where I've wanted to forbid maintainers to edit my PRs. I don't know about recommendations, though. |
Thank you for your time. I took a look to your corrections, it's instructive 👍. |
This pull request is a draft, waiting for the official release of clap v3. However, if needed, It can already be reviewed as the api shouldn't drastically change.
The doc comments on top of structs deriving
clap::Args
orclap::Parser
is still an issue with Clap v3. So I let the workaround in place.Closes #155