-
Notifications
You must be signed in to change notification settings - Fork 303
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
Update cli/urfave to v2 #1610
Comments
We've been burnt by this before 😬 #1286 |
I haven't looked into it, but this urfave/cli PR (urfave/cli#1568) just merged and claims to provide a way to upgrade to v2 in a compatible way |
@yob Looks like it should work to me too. We should be able to specify flags on a subcommand as "Persistent" and position them around arguments. Unfortunately, looks like that feature was merged into main, but is not the branch that v2 releases are from. Looking at the code, it defines the flags using golang generics, which I believe is a change made in v3. It would not be straightforward to back port it to v2. So we may have to upgrade to v3, whose milestone is 64% complete. Even then, just running
is not sufficient as (at the time of writing) as they have not tagged a release on v3 since merging that PR. Only after tracking the main branch with
did I get the And then there are a bunch of compilation failures from other changes in v3.
This is not unmanageable, and is not a fatal impediment to upgrading to v3. Nevertheless, I would be very hesitant to upgrade to an alpha v3. |
The library that we use to have a nice cli, urfave/cli has had a new major version, v2, for a little while now. For the sake of staying as current as possible with our dependencies, we should update this to the newest version.
Unfortunately, v2 of urfave/cli includes a breaking change where now, arguments to functions must come before flags - ie, where
is valid in v1, in v2 only
is allowed.
This issue is here to track that process, and note that we might want to (but won't necessarily) upgrade to the latest version of cli in agent v4.
The text was updated successfully, but these errors were encountered: