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

chore: clap v3 #13266

Merged
merged 41 commits into from Jan 14, 2022
Merged

chore: clap v3 #13266

merged 41 commits into from Jan 14, 2022

Conversation

crowlKats
Copy link
Member

@crowlKats crowlKats commented Jan 2, 2022

Closes #8475
Closes #12118

crowlKats and others added 23 commits March 12, 2021 11:06
# Conflicts:
#	cli/Cargo.toml
#	cli/flags.rs
# Conflicts:
#	Cargo.lock
#	cli/Cargo.toml
#	cli/flags.rs
# Conflicts:
#	Cargo.lock
#	cli/Cargo.toml
#	cli/flags.rs
# Conflicts:
#	Cargo.lock
#	cli/flags.rs
# Conflicts:
#	Cargo.lock
#	cli/Cargo.toml
#	cli/flags.rs
# Conflicts:
#	Cargo.lock
#	cli/Cargo.toml
#	cli/flags.rs
@crowlKats crowlKats marked this pull request as draft January 2, 2022 22:37
@lucacasonato
Copy link
Member

Also closes #12118

@crowlKats crowlKats marked this pull request as ready for review January 3, 2022 03:08
@crowlKats crowlKats marked this pull request as draft January 3, 2022 03:09
@crowlKats crowlKats marked this pull request as ready for review January 3, 2022 03:23
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

commit message should probably be "upgrade: clap v3"

checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
dependencies = [
"winapi 0.3.9",
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@crowlKats
Copy link
Member Author

crowlKats commented Jan 5, 2022

DO NOT MERGE. discussed with @bartlomieju and we came to the conclusion that this PR should wait for 2.0, as there are some fundamental changes to clap's parsing, which would likely be a breaking change in various cases

@crowlKats crowlKats added the maybe 2.0 a potential feature for Deno 2.0 that needs further discussion label Jan 5, 2022
@ry
Copy link
Member

ry commented Jan 5, 2022

@crowlKats Can you give an example of what changed?

@crowlKats
Copy link
Member Author

I have tried to keep behaviour same as current, but i cant be certain that it actually fully is. one test was failing with a weird case and had to change what we were doing, but that change maybe would need to be applied to other subcommands, or maybe not. its a bit hairy. also, cargo is being wary of updating as well rust-lang/cargo#10253 (comment) (and subsequent comments)

@ry ry mentioned this pull request Jan 10, 2022
@ry
Copy link
Member

ry commented Jan 11, 2022

@crowlKats and I have done a little experimentation and decided that if this does introduce bugs, they are very not common, it works in all the instances we tried. I suggest landing.

LGTM

@ry ry removed the maybe 2.0 a potential feature for Deno 2.0 that needs further discussion label Jan 12, 2022
@crowlKats crowlKats merged commit e650165 into denoland:main Jan 14, 2022
@crowlKats crowlKats deleted the clap_v3 branch January 14, 2022 16:38
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.

NO_COLOR=1 does not works for "Did you mean ..." Research upgrade to clap v3
4 participants