> For the complete documentation index, see [llms.txt](https://docs.debricked.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.debricked.com/overview/language-support/dart-pub.md).

# Dart - Pub

Fortify SCA tracks Dart dependencies managed with Pub through:

* `pubspec.yaml`, the package manifest
* `pubspec.lock`, the primary lock-file dependency source
* `pubspec.deps.json`, the complete resolved dependency graph

### Pub

Fortify SCA can scan `pubspec.lock` as a standalone file. It can also scan `pubspec.yaml` independently during manual or stateless uploads. When both files are present, Fortify SCA scans them together. This produces a flat dependency list without root or scope data.

Generate `pubspec.deps.json` before scanning to retain root and scope data:

```bash
dart pub deps --json > pubspec.deps.json
```

Commit `pubspec.deps.json` with your project files. Fortify SCA uses it instead of `pubspec.lock` when both files are present.

The generated graph includes direct, development, and transitive dependencies. It preserves parent-child relationships for dependency tracking, validation, and SBOM generation.

### Supported file formats and features

<table data-full-width="true"><thead><tr><th>Package manager</th><th>Supported file formats</th><th data-type="checkbox">Root dependencies</th><th data-type="checkbox">Indirect dependencies</th><th data-type="checkbox">Dependency trees</th><th data-type="checkbox">Security scanning</th><th data-type="checkbox">License scanning</th><th data-type="checkbox">Root fix</th><th data-type="checkbox">Pull Request</th><th data-type="checkbox">Reachability Analysis</th><th>High Performance Scan</th></tr></thead><tbody><tr><td>Pub</td><td><code>pubspec.yaml</code></td><td>true</td><td>false</td><td>false</td><td>true</td><td>true</td><td>false</td><td>false</td><td>false</td><td>Yes</td></tr><tr><td>Pub</td><td><code>pubspec.lock</code></td><td>true</td><td>false</td><td>false</td><td>true</td><td>true</td><td>false</td><td>false</td><td>false</td><td>Yes</td></tr><tr><td>Pub</td><td><code>pubspec.deps.json</code></td><td>true</td><td>true</td><td>true</td><td>true</td><td>true</td><td>false</td><td>false</td><td>false</td><td>Yes*</td></tr></tbody></table>

**\*** This is a native lock file format. Native lock file formats are the fastest formats to scan.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.debricked.com/overview/language-support/dart-pub.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
