Open edmorley opened 1 year ago
After #575, the cargo libcnb package command now outputs the paths of all compiled buildpacks to stdout (with the rest of the output on stderr).
cargo libcnb package
This is intended so that automation can fish out the buildpack names, and is used by eg: https://github.com/heroku/languages-github-actions
However, it gives a cluttered output for human users of cargo libcnb package, eg:
$ cargo libcnb package 🔍 Locating buildpacks... 📦 [1/1] Building heroku/python Determining automatic cross-compile settings... Building binaries (x86_64-unknown-linux-musl)... Finished dev [unoptimized] target(s) in 0.05s Writing buildpack directory... Successfully wrote buildpack directory: target/buildpack/x86_64-unknown-linux-musl/debug/heroku_python (7.66 MiB) ✨ Packaging successfully finished! 💡 To test your buildpack locally with pack, run: pack build my-image-name \ --buildpack /Users/emorley/src/buildpacks-python/target/buildpack/x86_64-unknown-linux-musl/debug/heroku_python \ --path /path/to/application /Users/emorley/src/buildpacks-python/target/buildpack/x86_64-unknown-linux-musl/debug/heroku_python
(ie: the very final line of the log output)
Perhaps we need a separate --machine-readable or some other output format control?
--machine-readable
Minor: Ideally we'd use --message-format like Cargo itself does. Otherwise I think it's the right direction - you either need output for humans or machines - usually not both.
--message-format
After #575, the
cargo libcnb package
command now outputs the paths of all compiled buildpacks to stdout (with the rest of the output on stderr).This is intended so that automation can fish out the buildpack names, and is used by eg: https://github.com/heroku/languages-github-actions
However, it gives a cluttered output for human users of
cargo libcnb package
, eg:(ie: the very final line of the log output)
Perhaps we need a separate
--machine-readable
or some other output format control?