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

refactor(cli): remove Lazy<String> and fix help outputs #18462

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

bartlomieju
Copy link
Member

This Lazy<String> calls were showing up on flamegraph and there's
really no point in using them.

Copy link
Member

@crowlKats crowlKats left a comment

Choose a reason for hiding this comment

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

LGTM, nice cleanup

Comment on lines +698 to +707
crate::version::deno(),
if crate::version::is_canary() {
"canary"
} else {
env!("PROFILE")
},
env!("TARGET"),
deno_core::v8_version(),
crate::version::TYPESCRIPT
);
Copy link
Member Author

Choose a reason for hiding this comment

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

Ideally this would be a static string too, but that would require to change deno_core::v8_version() to acquire V8 version information during build time. Doable, but I don't have time for this now.

@@ -957,19 +945,19 @@ fn compile_subcommand() -> Command {
deno compile -A https://deno.land/std/http/file_server.ts
deno compile --output color_util https://deno.land/std/examples/colors.ts

Any flags passed which affect runtime behavior, such as '--unstable', \
Copy link
Member

Choose a reason for hiding this comment

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

No more automatic wrapping for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

It appears this broke in clap v4 and we missed it when landing the PR

@bartlomieju bartlomieju merged commit 101abf3 into denoland:main Mar 27, 2023
@bartlomieju bartlomieju deleted the remove_lazy_strings branch March 27, 2023 16:29
mmastrac pushed a commit that referenced this pull request Mar 31, 2023
This `Lazy<String>` calls were showing up on flamegraph and there's
really no point in using them.
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.

None yet

3 participants