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

Problems parsing cargo output in very verbose mode #343

Open
rossng opened this issue Jan 29, 2025 · 0 comments
Open

Problems parsing cargo output in very verbose mode #343

rossng opened this issue Jan 29, 2025 · 0 comments

Comments

@rossng
Copy link

rossng commented Jan 29, 2025

If you enable 'very verbose' mode with -vvor --verbose --verbose in your cargoBuildOptions, Cargo may also output directives in this format:

[foo 0.1.0] cargo:rerun-if-changed=build.rs

These end up in the cargo_build_output_json, leading to errors like this when naersk attempts to parse each line with jq:

[naersk] Using file /build/tmp.qzz0yRFzQJ to retrieve build (library) products
jq: parse error: Invalid numeric literal at line 8163, column 9
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

No branches or pull requests

1 participant