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
In order to detect dependencies, Trivy searches for `pubspec.lock`.
@@ -22,11 +22,13 @@ Trivy marks indirect dependencies, but `pubspec.lock` file doesn't have options
22
22
So Trivy includes all dependencies in report.
23
23
24
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.
25
+
Dart uses version `0.0.0` for SDK dependencies (e.g. Flutter).
26
+
It is not possible to accurately determine the versions of these dependencies.
27
+
Trivy just treats them as `0.0.0`.
26
28
27
-
Therefore, we use the first version of the constraint for the SDK.
29
+
If [--detection-priority comprehensive][detection-priority] is passed, Trivy uses the minimum version of the constraint for the SDK.
30
+
For example, in the following case, the version of `flutter` would be `3.3.0`:
28
31
29
-
For example in this case the version of `flutter` should be `3.3.0`:
30
32
```yaml
31
33
flutter:
32
34
dependency: "direct main"
@@ -40,10 +42,12 @@ sdks:
40
42
41
43
### Dependency tree
42
44
To build `dependency tree` Trivy parses [cache directory][cache-directory]. Currently supported default directories and `PUB_CACHE` environment (absolute path only).
45
+
43
46
!!! note
44
47
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