{"push_id":2971322199,"size":2,"distinct_size":2,"ref":"refs/heads/auto-cargo","head":"4076b8d2967d9cc11e4f980d747ab7529ca741ab","before":"8522a88fbd192aed9d8e82630e77940421c404f5","commits":[{"sha":"20920c01315003e5bc34ff0ca41d55a44e6ec07e","author":{"name":"Ted Mielczarek","email":"46ab578353b0478abc71fa54796a76c10bbe41a8@mielczarek.org"},"message":"Prefix build script output with crate name when running in extra verbose mode. Fixes #6158.\n\ncargo's extra verbose mode is useful for getting detailed information out of\nbuilds in CI where it can be difficult to examine the build environment\nafter-the-fact. However, when multiple build scripts are running as part of a\nbuild it's not always clear what output is from which build script. This patch\nmakes cargo prefix each line of build script output with the crate name and\nversion this case.","distinct":true,"url":"https://api.github.com/repos/rust-lang/cargo/commits/20920c01315003e5bc34ff0ca41d55a44e6ec07e"},{"sha":"4076b8d2967d9cc11e4f980d747ab7529ca741ab","author":{"name":"bors","email":"3a2c29237f73c7cf88424b80e427b1884f346b35@rust-lang.org"},"message":"Auto merge of #6164 - luser:build-script-output-prefix, r=alexcrichton\n\nPrefix build script output with crate name when running in extra verbose mode. Fixes #6158.\n\ncargo's extra verbose mode is useful for getting detailed information out of\nbuilds in CI where it can be difficult to examine the build environment\nafter-the-fact. However, when multiple build scripts are running as part of a\nbuild it's not always clear what output is from which build script. This patch\nmakes cargo prefix each line of build script output with the crate name\nin this case.\n\nI put together [a simple test crate](https://github.com/luser/snippet/tree/build-script-output) for this. Building that crate on my machine with stable cargo produces:\n```\nluser@eye7:/build/snippet$ cargo build -vv\n   Compiling one v0.1.0 (file:///build/snippet/one)\n   Compiling two v0.1.0 (file:///build/snippet/two)\n       Fresh itoa v0.3.4\n     Running `rustc --crate-name build_script_build one/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=8e5ff38061b98562 -C extra-filename=-8e5ff38061b98562 --out-dir /build/snippet/target/debug/build/one-8e5ff38061b98562 -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps`\n     Running `rustc --crate-name build_script_build two/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=fcd8c089040e6ff4 -C extra-filename=-fcd8c089040e6ff4 --out-dir /build/snippet/target/debug/build/two-fcd8c089040e6ff4 -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps`\n     Running `/build/snippet/target/debug/build/two-fcd8c089040e6ff4/build-script-build`\n     Running `/build/snippet/target/debug/build/one-8e5ff38061b98562/build-script-build`\nError 0\nOutput 0\nOutput 0\nError 0\nOutput 1\nError 1\nError 1\nOutput 1\nError 2\nOutput 2\nError 2\nOutput 2\nError 3\nOutput 3\nError 3\nOutput 3\nError 4\nError 4\nOutput 4\nOutput 4\nError 5\nError 5\nOutput 5\nOutput 5\nError 6\nOutput 6\nError 6\nOutput 6\nError 7\nOutput 7\nError 7\nOutput 7\nError 8\nError 8\nOutput 8\nOutput 8\nError 9\nOutput 9\nError 9\nOutput 9\n     Running `rustc --crate-name two two/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=904ea56f5613ae62 -C extra-filename=-904ea56f5613ae62 --out-dir /build/snippet/target/debug/deps -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps`\n     Running `rustc --crate-name one one/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=c2b76a52468c9a0b -C extra-filename=-c2b76a52468c9a0b --out-dir /build/snippet/target/debug/deps -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps`\n   Compiling snippet v0.1.4-alpha.0 (file:///build/snippet)\n     Running `rustc --crate-name snippet src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=a5c6abeab1e38e11 -C extra-filename=-a5c6abeab1e38e11 --out-dir /build/snippet/target/debug/deps -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps --extern itoa=/build/snippet/target/debug/deps/libitoa-327a92d5ddd56b4a.rlib --extern one=/build/snippet/target/debug/deps/libone-c2b76a52468c9a0b.rlib --extern two=/build/snippet/target/debug/deps/libtwo-904ea56f5613ae62.rlib`\n     Running `rustc --crate-name snippet src/main.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=8b5a0b44264aa67c -C extra-filename=-8b5a0b44264aa67c --out-dir /build/snippet/target/debug/deps -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps --extern itoa=/build/snippet/target/debug/deps/libitoa-327a92d5ddd56b4a.rlib --extern one=/build/snippet/target/debug/deps/libone-c2b76a52468c9a0b.rlib --extern snippet=/build/snippet/target/debug/deps/libsnippet-a5c6abeab1e38e11.rlib --extern two=/build/snippet/target/debug/deps/libtwo-904ea56f5613ae62.rlib`\n    Finished dev [unoptimized + debuginfo] target(s) in 0.76s\n```\n\nBuilding that crate with my local cargo including this change produces:\n```\nluser@eye7:/build/snippet$ /build/cargo/target/debug/cargo build -vv\n   Compiling one v0.1.0 (/build/snippet/one)\n   Compiling two v0.1.0 (/build/snippet/two)\n   Compiling itoa v0.3.4\n     Running `rustc --crate-name build_script_build one/build.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=8e5ff38061b98562 -C extra-filename=-8e5ff38061b98562 --out-dir /build/snippet/target/debug/build/one-8e5ff38061b98562 -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps`\n     Running `rustc --crate-name build_script_build two/build.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=fcd8c089040e6ff4 -C extra-filename=-fcd8c089040e6ff4 --out-dir /build/snippet/target/debug/build/two-fcd8c089040e6ff4 -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps`\n     Running `rustc --crate-name itoa /home/luser/.cargo/registry/src/github.com-1ecc6299db9ec823/itoa-0.3.4/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=327a92d5ddd56b4a -C extra-filename=-327a92d5ddd56b4a --out-dir /build/snippet/target/debug/deps -L dependency=/build/snippet/target/debug/deps --cap-lints warn`\n     Running `/build/snippet/target/debug/build/one-8e5ff38061b98562/build-script-build`\n     Running `/build/snippet/target/debug/build/two-fcd8c089040e6ff4/build-script-build`\n[one-e779b28932bbd20b] Error 0\n[one-e779b28932bbd20b] Output 0\n[one-e779b28932bbd20b] Output 1\n[one-e779b28932bbd20b] Error 1\n[two-adc2191c38bf9afc] Error 0\n[two-adc2191c38bf9afc] Output 0\n[one-e779b28932bbd20b] Error 2\n[one-e779b28932bbd20b] Output 2\n[two-adc2191c38bf9afc] Error 1\n[two-adc2191c38bf9afc] Output 1\n[one-e779b28932bbd20b] Output 3\n[one-e779b28932bbd20b] Error 3\n[two-adc2191c38bf9afc] Error 2\n[two-adc2191c38bf9afc] Output 2\n[one-e779b28932bbd20b] Error 4\n[one-e779b28932bbd20b] Output 4\n[two-adc2191c38bf9afc] Error 3\n[two-adc2191c38bf9afc] Output 3\n[one-e779b28932bbd20b] Error 5\n[one-e779b28932bbd20b] Output 5\n[two-adc2191c38bf9afc] Error 4\n[two-adc2191c38bf9afc] Output 4\n[one-e779b28932bbd20b] Error 6\n[one-e779b28932bbd20b] Output 6\n[two-adc2191c38bf9afc] Error 5\n[two-adc2191c38bf9afc] Output 5\n[one-e779b28932bbd20b] Error 7\n[one-e779b28932bbd20b] Output 7\n[two-adc2191c38bf9afc] Error 6\n[two-adc2191c38bf9afc] Output 6\n[one-e779b28932bbd20b] Error 8\n[one-e779b28932bbd20b] Output 8\n[two-adc2191c38bf9afc] Error 7\n[two-adc2191c38bf9afc] Output 7\n[one-e779b28932bbd20b] Error 9\n[one-e779b28932bbd20b] Output 9\n[two-adc2191c38bf9afc] Output 8\n[two-adc2191c38bf9afc] Error 8\n     Running `rustc --crate-name one one/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=c2b76a52468c9a0b -C extra-filename=-c2b76a52468c9a0b --out-dir /build/snippet/target/debug/deps -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps`\n[two-adc2191c38bf9afc] Error 9\n[two-adc2191c38bf9afc] Output 9\n     Running `rustc --crate-name two two/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=904ea56f5613ae62 -C extra-filename=-904ea56f5613ae62 --out-dir /build/snippet/target/debug/deps -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps`\n   Compiling snippet v0.1.4-alpha.0 (/build/snippet)\n     Running `rustc --crate-name snippet src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=a5c6abeab1e38e11 -C extra-filename=-a5c6abeab1e38e11 --out-dir /build/snippet/target/debug/deps -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps --extern itoa=/build/snippet/target/debug/deps/libitoa-327a92d5ddd56b4a.rlib --extern one=/build/snippet/target/debug/deps/libone-c2b76a52468c9a0b.rlib --extern two=/build/snippet/target/debug/deps/libtwo-904ea56f5613ae62.rlib`\n     Running `rustc --crate-name snippet src/main.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=8b5a0b44264aa67c -C extra-filename=-8b5a0b44264aa67c --out-dir /build/snippet/target/debug/deps -C incremental=/build/snippet/target/debug/incremental -L dependency=/build/snippet/target/debug/deps --extern itoa=/build/snippet/target/debug/deps/libitoa-327a92d5ddd56b4a.rlib --extern one=/build/snippet/target/debug/deps/libone-c2b76a52468c9a0b.rlib --extern snippet=/build/snippet/target/debug/deps/libsnippet-a5c6abeab1e38e11.rlib --extern two=/build/snippet/target/debug/deps/libtwo-904ea56f5613ae62.rlib`\n    Finished dev [unoptimized + debuginfo] target(s) in 0.90s\n```\nI used `invocation_name` here for no particular reason other than it was being used by the build plan code immediately above, but since that includes the fingerprint it might be nicer to use just `pkg_name`?","distinct":true,"url":"https://api.github.com/repos/rust-lang/cargo/commits/4076b8d2967d9cc11e4f980d747ab7529ca741ab"}]}
{"actor":{"display_login":"bors"}}