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

clap_complete::env::Elvish generates code deprecated in 0.18, removed in 0.21 #5729

Open
Tracked by #3166
epage opened this issue Sep 16, 2024 · 0 comments
Open
Tracked by #3166
Labels
A-completion Area: completion generator C-bug Category: Updating dependencies E-medium Call for participation: Experience needed to fix: Medium / intermediate

Comments

@epage
Copy link
Member

epage commented Sep 16, 2024

As reported in rust-lang/cargo#14545

++++ actual:   In-memory
        1 + Deprecation: the legacy temporary assignment syntax is deprecated; use "tmp" instead
        2 +   /tmp/cargo/target/tmp/cit/t0/home/elvish/rc.elv:3:7: eval (E:CARGO_COMPLETE=elvish cargo | slurp)

From 0.18

The legacy temporary assignment syntax (e.g. a=foo echo $a) is deprecated. Use the new tmp command instead (e.g. tmp a = foo; echo $a).
...
A new tmp special command for doing temporary assignments.

From 0.21

Support for the legacy temporary assignment syntax (a=b command), deprecated since 0.18.0, has been removed.

Use either the tmp command (available since 0.18.0) or the with command (available since this release) instead.

Note: since I don't see this locally (0.17) or in CI, this means we need likely need a version check to determine which approach is allowed or find a different way of writing this completely

@epage epage added C-bug Category: Updating dependencies E-medium Call for participation: Experience needed to fix: Medium / intermediate A-completion Area: completion generator labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-completion Area: completion generator C-bug Category: Updating dependencies E-medium Call for participation: Experience needed to fix: Medium / intermediate
Projects
None yet
Development

No branches or pull requests

1 participant