You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following table provides an outline of the features Trivy offers.
12
12
@@ -21,6 +21,24 @@ In order to detect dependencies, Trivy searches for `pubspec.lock`.
21
21
Trivy marks indirect dependencies, but `pubspec.lock` file doesn't have options to separate root and dev transitive dependencies.
22
22
So Trivy includes all dependencies in report.
23
23
24
+
### SDK dependencies
25
+
Dart uses version `0.0.0` for SDK dependencies (e.g. Flutter). It is not possible to accurately determine the versions of these dependencies.
26
+
27
+
Therefore, we use the first version of the constraint for the SDK.
28
+
29
+
For example in this case the version of `flutter` should be `3.3.0`:
30
+
```yaml
31
+
flutter:
32
+
dependency: "direct main"
33
+
description: flutter
34
+
source: sdk
35
+
version: "0.0.0"
36
+
sdks:
37
+
dart: ">=2.18.0 <3.0.0"
38
+
flutter: "^3.3.0"
39
+
```
40
+
41
+
### Dependency tree
24
42
To build `dependency tree` Trivy parses [cache directory][cache-directory]. Currently supported default directories and `PUB_CACHE` environment (absolute path only).
25
43
!!! note
26
44
Make sure the cache directory contains all the dependencies installed in your application. To download missing dependencies, use `dart pub get` command.
0 commit comments