1
0
mirror of https://github.com/etcd-io/etcd.git synced 2026-02-05 06:46:49 +01:00

Merge pull request #20811 from ivanvc/silence-bom-expected-error

Silence BOM first run expected error
This commit is contained in:
Benjamin Wang
2025-10-22 20:57:41 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -423,7 +423,7 @@ function bom_pass {
# Intentionally run the command once first, so it fetches dependencies. The exit code on the first
# run in a just cloned repository is always dirty.
GOOS=linux run_go_tool github.com/appscodelabs/license-bill-of-materials \
--override-file ./bill-of-materials.override.json "${modules[@]}"
--override-file ./bill-of-materials.override.json "${modules[@]}" &> /dev/null
# BOM file should be generated for linux. Otherwise running this command on other operating systems such as OSX
# results in certain dependencies being excluded from the BOM file, such as procfs.

View File

@@ -27,6 +27,9 @@ function bom_fixlet {
# shellcheck disable=SC2207
modules=($(modules_for_bom))
GOOS=linux run_go_tool "github.com/appscodelabs/license-bill-of-materials" \
--override-file ./bill-of-materials.override.json "${modules[@]}" &> /dev/null
# BOM file should be generated for linux. Otherwise running this command on other operating systems such as OSX
# results in certain dependencies being excluded from the BOM file, such as procfs.
# For more info, https://github.com/etcd-io/etcd/issues/19665