mirror of
https://github.com/aquasecurity/trivy.git
synced 2026-01-31 13:53:14 +08:00
107 lines
3.6 KiB
Plaintext
107 lines
3.6 KiB
Plaintext
Test case: Cargo.lock without Cargo.toml.
|
|
|
|
This test verifies that the analyzer works when only Cargo.lock is present
|
|
(e.g., scanning a container image where Cargo.toml was not included).
|
|
|
|
Expected behavior:
|
|
- All packages should have RelationshipUnknown (cannot determine direct vs indirect)
|
|
- Indirect field should be false for all packages
|
|
- Package information should still be correctly parsed from Cargo.lock
|
|
|
|
-- Cargo.lock --
|
|
# This file is automatically @generated by Cargo.
|
|
# It is not intended for manual editing.
|
|
|
|
[[package]]
|
|
name = "aho-corasick"
|
|
version = "0.7.20"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac"
|
|
dependencies = [
|
|
"memchr 2.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
]
|
|
|
|
[[package]]
|
|
name = "app"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"memchr 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"regex 1.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"regex-syntax 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
]
|
|
|
|
[[package]]
|
|
name = "libc"
|
|
version = "0.2.140"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c"
|
|
|
|
[[package]]
|
|
name = "memchr"
|
|
version = "1.0.2"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "148fab2e51b4f1cfc66da2a7c32981d1d3c083a803978268bb11fe4b86925e7a"
|
|
dependencies = [
|
|
"libc 0.2.140 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
]
|
|
|
|
[[package]]
|
|
name = "memchr"
|
|
version = "2.5.0"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
|
|
|
|
[[package]]
|
|
name = "regex"
|
|
version = "1.7.3"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "8b1f693b24f6ac912f4893ef08244d70b6067480d2f1a46e950c9691e6749d1d"
|
|
dependencies = [
|
|
"aho-corasick 0.7.20 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"memchr 2.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"regex-syntax 0.6.29 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
]
|
|
|
|
[[package]]
|
|
name = "regex-syntax"
|
|
version = "0.5.6"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "7d707a4fa2637f2dca2ef9fd02225ec7661fe01a53623c1e6515b6916511f7a7"
|
|
dependencies = [
|
|
"ucd-util 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
]
|
|
|
|
[[package]]
|
|
name = "regex-syntax"
|
|
version = "0.6.29"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
|
|
|
|
[[package]]
|
|
name = "ucd-util"
|
|
version = "0.1.10"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "abd2fc5d32b590614af8b0a20d837f32eca055edd0bbead59a9cfe80858be003"
|
|
|
|
[[package]]
|
|
name = "winapi"
|
|
version = "0.3.9"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
|
dependencies = [
|
|
"winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
]
|
|
|
|
[[package]]
|
|
name = "winapi-i686-pc-windows-gnu"
|
|
version = "0.4.0"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
|
|
|
[[package]]
|
|
name = "winapi-x86_64-pc-windows-gnu"
|
|
version = "0.4.0"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|