Skip to content

Replace warn macro with cargo::warning for build script#1192

Merged
phil-opp merged 1 commit intodora-rs:mainfrom
drindr:codegen-warning
Nov 13, 2025
Merged

Replace warn macro with cargo::warning for build script#1192
phil-opp merged 1 commit intodora-rs:mainfrom
drindr:codegen-warning

Conversation

@drindr
Copy link
Copy Markdown
Contributor

@drindr drindr commented Nov 13, 2025

Replace a debug_assert and warn macro in msg-gen crate with println!("cargo::warning=MESSAGE")

It's no need to stop the whole process when there are some useless path in the AMENT_PREFIX_PATH.
The warn macro cannot display on the terminal when it is in the build script.

Signed-off-by: drindr <dreamchancn@qq.com>
@phil-opp phil-opp merged commit 5c0f956 into dora-rs:main Nov 13, 2025
26 of 27 checks passed
@phil-opp
Copy link
Copy Markdown
Collaborator

Thanks!

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.

2 participants