Skip to content

Commit

Permalink
chore(bolt): add color to cargo build with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Aug 8, 2024
1 parent da415bd commit 3a1799f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/bolt/core/src/dep/cargo/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ pub async fn build<'a, T: AsRef<str>>(ctx: &ProjectContext, opts: BuildOpts<'a,
export RUSTFLAGS="--cfg tokio_unstable"
# Used for debugging
export CARGO_LOG=cargo::core::compiler::fingerprint=info
export CARGO_TERM_COLOR=always
{sccache_env}
Expand Down Expand Up @@ -231,6 +232,7 @@ pub async fn build<'a, T: AsRef<str>>(ctx: &ProjectContext, opts: BuildOpts<'a,
cmd.env("DOCKER_BUILDKIT", "1");
cmd.current_dir(ctx.path());
cmd.arg("build");
cmd.arg("--progress").arg("plain");
cmd.arg("-f").arg(dockerfile_path);
// Prints plain console output for debugging
// cmd.arg("--progress=plain");
Expand Down Expand Up @@ -289,6 +291,7 @@ pub async fn build<'a, T: AsRef<str>>(ctx: &ProjectContext, opts: BuildOpts<'a,
cmd.env("DOCKER_BUILDKIT", "1");
cmd.current_dir(ctx.path());
cmd.arg("build");
cmd.arg("--progress").arg("plain");
cmd.arg("-f").arg(dockerfile_path);
// Prints plain console output for debugging
// cmd.arg("--progress=plain");
Expand Down Expand Up @@ -493,6 +496,7 @@ pub async fn build_tests<'a, T: AsRef<str>>(
cmd.env("DOCKER_BUILDKIT", "1");
cmd.current_dir(ctx.path());
cmd.arg("build");
cmd.arg("--progress").arg("plain");
cmd.arg("-f").arg(dockerfile_path);
// Prints plain console output for debugging
// cmd.arg("--progress=plain");
Expand Down

0 comments on commit 3a1799f

Please sign in to comment.