commit | ff56115f39f3c4f2fcb8b9218456dcb5383ac8bf | [log] [tgz] |
---|---|---|
author | Zvonimir Pavlinovic <zpavlinovic@google.com> | Thu Aug 15 14:00:55 2024 +0000 |
committer | Zvonimir Pavlinovic <zpavlinovic@google.com> | Thu Aug 22 13:44:43 2024 +0000 |
tree | 5160a9d6ed3555b5a54a5294f453370bf1a85a33 | |
parent | ffdef74cc44d7eb71931d8d414c478b966812488 [diff] |
cmd/govulncheck: update test file for main module vulnerabilities As of https://go-review.git.corp.google.com/c/go/+/596035, go command adds a version for a Go binary, not always defaulting to devel. That causes a devel test to fail at go tip builders. This CL adds an explicit binary with devel version rather than the test building its own binary. Once the new Go version with the above fix is released, we'll add another test. Change-Id: I409d18c85a0fad9b424771bd330067ac987d4830 Reviewed-on: https://go-review.googlesource.com/c/vuln/+/605855 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Cottrell <iancottrell@google.com>
diff --git a/cmd/govulncheck/testdata/main/modules/vuln/vuln_main_devel b/cmd/govulncheck/testdata/main/modules/vuln/vuln_main_devel new file mode 100755 index 0000000..b9000b9 --- /dev/null +++ b/cmd/govulncheck/testdata/main/modules/vuln/vuln_main_devel Binary files differ
diff --git a/cmd/govulncheck/testdata/main/testfiles/binary/binary_call_text.ct b/cmd/govulncheck/testdata/main/testfiles/binary/binary_call_text.ct index 0a5cba6..41993f6 100644 --- a/cmd/govulncheck/testdata/main/testfiles/binary/binary_call_text.ct +++ b/cmd/govulncheck/testdata/main/testfiles/binary/binary_call_text.ct
@@ -1,6 +1,6 @@ ##### # Test no vulnerabilities in main module with devel version. -$ govulncheck -mode=binary ${main_vuln_binary} +$ govulncheck -mode=binary ${moddir}/vuln/vuln_main_devel No vulnerabilities found.