# Open Source Projects that must be built before testing with the Snyk CLI

For some types of Open Source Projects, you must build the Project before testing it with the [Snyk CLI.](/developer-tools/snyk-cli.md)

Manifests provide some dependency information. However, other dependencies are resolved only after the Project is built. In addition, lockfiles giving dependency information may not be available before the Project is built.

The following types of Projects must be built before testing with the CLI.

| **Language**        | **Project type**      | **Build required?**                                                                                                                                                                                                                                                                                                                   |
| ------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| JavaScript          | npm                   | <p>Build required only if no <code>package-lock.json</code> file is present; run <code>npm install</code> to generate.<br>See the <a href="/pages/bxklzFkADfuuMYIZKsqa">Snyk for JavaScript documentation </a>for supported lockfile versions</p>                                                                                     |
| JavaScript          | pnpm                  | Build required only if no `pnpm-lock.yaml` file is present; run `pnpm install` to generate                                                                                                                                                                                                                                            |
| Javascript          | Yarn                  | Build required only if no `yarn.lock` file is present; run `yarn install` to generate                                                                                                                                                                                                                                                 |
| Java                | Maven                 | <p>Yes<br>Run <code>mvn install</code> before testing.</p>                                                                                                                                                                                                                                                                            |
| Java                | Gradle                | No                                                                                                                                                                                                                                                                                                                                    |
| .NET                | NuGet                 | Build required only if no `packages.config` file is present.                                                                                                                                                                                                                                                                          |
| .NET                | Paket                 | Yes                                                                                                                                                                                                                                                                                                                                   |
| Python              | pip                   | <p>Yes<br>Run <code>pip install -r requirements.txt</code> before testing. Install is required so that the full dependency tree (nested dependencies included) can be tested.</p><p>Alternatively, pass the CLI <code>--skip-unresolved=true</code> option when testing to test only the dependencies available without building.</p> |
| Python              | pipenv                | <p>Yes<br>Run <code>pipenv update</code> before testing</p>                                                                                                                                                                                                                                                                           |
| Python              | setup.py              | <p>Yes<br>Run <code>pip install -e .</code> before testing</p>                                                                                                                                                                                                                                                                        |
| Python              | Poetry                | <p>Yes<br>If no Poetry lockfile exists, run <code>poetry lock</code> to generate a poetry.lock file before testing.<br>No<br>If the lockfile exists.</p>                                                                                                                                                                              |
| Python              | dep                   | <p>Yes<br>Run <code>dep ensure</code> before testing.</p>                                                                                                                                                                                                                                                                             |
| Golang              | Go Modules            | No                                                                                                                                                                                                                                                                                                                                    |
| Swift / Objective-C | Cocoapods             | Build required only if no `Podfile.lock` file is present; run `pod install` to generate                                                                                                                                                                                                                                               |
| Swift               | Swift Package Manager | No                                                                                                                                                                                                                                                                                                                                    |
| Scala               | sbt                   | No                                                                                                                                                                                                                                                                                                                                    |
| Ruby                | Bundler               | Build required only if no `Gemfile.lock` file present; run `bundle install` to generate.                                                                                                                                                                                                                                              |
| PHP                 | Composer              | Build required only if no `composer.lock` file is present; run `composer install` to generate.                                                                                                                                                                                                                                        |


---

# Agent Instructions: 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:

```
GET https://docs.snyk.io/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/snyk-cli-for-open-source/open-source-projects-that-must-be-built-before-testing-with-the-snyk-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
