Skip to content

Commit 6667a4f

Browse files
committed
prep demo
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent bc5eb6e commit 6667a4f

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ Options:
8383
(can be set multiple times)
8484
(choices: "dev", "optional", "peer", default: "dev" if the NODE_ENV environment variable is set to "production", otherwise empty)
8585
--flatten-components Whether to flatten the components.
86-
Enabling this feature means the actual nesting of node packages is not represented in the SBOM result.
86+
Enabling this feature means the actual nesting of node packages is not represented in the SBOM result, which causes a massive information loss.
8787
(default: false)
8888
--deduplicate-components Whether to artificially de-duplicate the node packages.
89+
Enabling this feature means the actual multiple/parallel installed instances of a packages are displayed as one component, which causes a massive information loss.
8990
Enabling this feature implies option "--flatten-components=true"
9091
(default: false)
9192
--short-PURLs Omit all qualifiers from PackageURLs.

Diff for: demo/gen-boms.sh

+10
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ do
3939
--output-format "$format" \
4040
--output-file "$result_dir/flat/bom.$spec.$format" \
4141
"$package"
42+
43+
echo ">>> $result_dir $spec $format deduplicated"
44+
mkdir -p "$result_dir/deduplicated"
45+
node -- "$BIN_CDX_N" \
46+
--deduplicate-components \
47+
--spec-version "$spec" \
48+
--output-reproducible \
49+
--output-format "$format" \
50+
--output-file "$result_dir/deduplicated/bom.$spec.$format" \
51+
"$package"
4252
done
4353
done
4454
done

Diff for: src/cli.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ function makeCommand (process: NodeJS.Process): Command {
8787
new Option(
8888
'--flatten-components',
8989
'Whether to flatten the components.\n' +
90-
'Enabling this feature means the actual nesting of node packages is not represented in the SBOM result.'
90+
'Enabling this feature means the actual nesting of node packages is not represented in the SBOM result, which causes a massive information loss.'
9191
).default(false)
9292
).addOption(
9393
new Option(
9494
'--deduplicate-components',
9595
'Whether to artificially de-duplicate the node packages.\n' +
96+
'Enabling this feature means the actual multiple/parallel installed instances of a packages are displayed as one component, which causes a massive information loss.\n' +
9697
'Enabling this feature implies option "--flatten-components=true"'
9798
).default(false)
9899
).addOption(

0 commit comments

Comments
 (0)