# Source: 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

# 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.](https://docs.snyk.io/developer-tools/snyk-cli)

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="../../../../supported-languages/supported-languages-list/javascript">Snyk for JavaScript documentation </a>for supported lockfile versions</p>                                             |
| 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.                                                                                                                                                                                                                                        |

\\