Skip to content

Commit c607e94

Browse files
committed
fix: use info instead of warning for missing doxygen binary
1 parent 80da495 commit c607e94

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/doxygen/doxygen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { setupBrewPack } from "../utils/setup/setupBrewPack"
55
import { setupChocoPack } from "../utils/setup/setupChocoPack"
66
import { addBinExtension } from "../utils/extension/extension"
77
import { extractTar } from "../utils/setup/extract"
8-
import { warning } from "../utils/io/io"
8+
import { info } from "../utils/io/io"
99
import { setupGraphviz } from "../graphviz/graphviz"
1010
import { getVersion } from "../default_versions"
1111

@@ -47,7 +47,7 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
4747
// doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself
4848
installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
4949
} catch (err) {
50-
warning(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)
50+
info(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)
5151
installationInfo = await setupAptPack("doxygen", undefined)
5252
}
5353
await setupGraphviz(getVersion("graphviz", undefined), "", arch)

src/utils/io/io.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ export function success(msg: string) {
1212
export function warning(msg: string) {
1313
return isGitHubCI() ? core.warning(msg) : console.log(`\x1b[33m${msg}\x1b[0m`)
1414
}
15+
16+
export function info(msg: string) {
17+
return isGitHubCI() ? core.info(msg) : console.log(msg)
18+
}

0 commit comments

Comments
 (0)