Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions cmd/osv-scanner/scan/source/__snapshots__/command_test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2598,14 +2598,13 @@ Total 24 packages affected by 185 known vulnerabilities (19 Critical, 76 High, 5

---

[TestCommand_ExplicitExtractors_WithDefaults/empty_plugins_flag_does_nothing - 1]
[TestCommand_ExplicitExtractors_WithDefaults/empty_plugins_flag_does_default - 1]
Warning: plugin transitivedependency/pomxml can be risky when run on untrusted artifacts. Please ensure you trust the source code and artifacts before proceeding.

---

[TestCommand_ExplicitExtractors_WithDefaults/empty_plugins_flag_does_nothing - 2]
Incorrect Usage: flag needs an argument: --experimental-plugins=

flag needs an argument: --experimental-plugins=
[TestCommand_ExplicitExtractors_WithDefaults/empty_plugins_flag_does_default - 2]
No package sources found, --help for usage information.

---

Expand Down Expand Up @@ -2758,9 +2757,7 @@ could not determine extractor, requested package-lock.json
---

[TestCommand_ExplicitExtractors_WithoutDefaults/empty_plugins_flag_does_nothing - 2]
Incorrect Usage: flag needs an argument: --experimental-plugins=

flag needs an argument: --experimental-plugins=
at least one extractor must be enabled

---

Expand Down
4 changes: 2 additions & 2 deletions cmd/osv-scanner/scan/source/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,9 @@ func TestCommand_ExplicitExtractors_WithDefaults(t *testing.T) {

tests := []testcmd.Case{
{
Name: "empty_plugins_flag_does_nothing",
Name: "empty_plugins_flag_does_default",
Args: []string{"", "source", "--experimental-plugins="},
Exit: 127,
Exit: 128,
},
{
Name: "extractors_cancelled_out_specified_individually",
Expand Down
Loading
Loading