Skip to content

Commit

Permalink
chore(platform_env): add warn prefix to docs (#9269)
Browse files Browse the repository at this point in the history
### Description

Update logs

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
  • Loading branch information
tknickman authored Oct 16, 2024
1 parent ec80139 commit 2a7c317
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions crates/turborepo-env/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,33 +61,31 @@ impl PlatformEnv {
cache hits."
};

let docs_message = color!(
color_config,
UNDERLINE,
"https://turbo.build/repo/docs/platform-environment-variables"
);

match ci {
"VERCEL" => {
ceprintln!(
color_config,
BOLD,
"Warning - the following environment variables are set on your Vercel \
project, but missing from \"turbo.json\". {}",
strict_message
project, but missing from \"turbo.json\". {strict_message} Learn more at \
{docs_message}\n"
);
}
_ => {
ceprintln!(
color_config,
BOLD,
"Warning - the following environment variables are missing from \
\"turbo.json\". {}",
strict_message
\"turbo.json\". {strict_message} Learn more at {docs_message}\n"
);
}
}

let docs = color!(
color_config,
UNDERLINE,
"https://turbo.build/repo/docs/platform-environment-variables"
);
ceprintln!(color_config, GREY, "Learn more at {docs}\n");
}

pub fn output_for_task(
Expand Down

0 comments on commit 2a7c317

Please sign in to comment.