Skip to content

Commit

Permalink
Improve messages.
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Jan 16, 2025
1 parent a7893b1 commit 264f7d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5494,7 +5494,7 @@ export async function createCsharpBom(path, options) {
"This project requires a specific version of dotnet sdk to be installed. The cdxgen container image bundles dotnet SDK 8.0, which might be incompatible.",
);
console.log(
"TIP: Try using the custom `ghcr.io/cyclonedx/cdxgen-dotnet6:v11` or `ghcr.io/cyclonedx/cdxgen-dotnet7:v11` container images.",
"TIP: Try using the custom `ghcr.io/cyclonedx/cdxgen-debian-dotnet6:v11` or `ghcr.io/cyclonedx/cdxgen-debian-dotnet8:v11` container images.",
);
} else if (
result?.stderr?.includes("is not found on source") ||
Expand All @@ -5504,7 +5504,7 @@ export async function createCsharpBom(path, options) {
`The project ${f} refers to private packages that are not available on nuget.org!`,
);
console.log(
"Tip: Authenticate with any private registries such as Azure Artifacts feed before running cdxgen. Alternatively, commit the contents of the 'packages' folder to the repository.",
"TIP: Authenticate with any private registries such as Azure Artifacts feed before running cdxgen. Alternatively, commit the contents of the 'packages' folder to the repository.",
);
} else if (result?.stderr?.includes("but the current NuGet version")) {
if (process.env?.CDXGEN_IN_CONTAINER !== "true") {
Expand All @@ -5525,7 +5525,7 @@ export async function createCsharpBom(path, options) {
);
if (process.env?.CDXGEN_IN_CONTAINER !== "true") {
console.log(
"Alternatively, try using the custom `ghcr.io/cyclonedx/cdxgen-dotnet6:v11` container image, which bundles nuget (mono) and a range of dotnet SDKs.",
"Alternatively, try using the custom `ghcr.io/cyclonedx/cdxgen-debian-dotnet6:v11` container image, which bundles nuget (mono) and a range of dotnet SDKs.",
);
}
}
Expand Down

0 comments on commit 264f7d7

Please sign in to comment.