Behind the Scenes
Go Projects
Behind the scenes, the JFrog VS Code Extension scans all the project dependencies, both direct and indirect (transitive), even if they are not declared in the project's go.mod. It builds the Go dependencies tree by running go mod graph
and intersecting the results with go list -f '{{with .Module}}{{.Path}} {{.Version}}{{end}}' all
command. Therefore, please make sure to have Go CLI in your system PATH.
Maven Projects
The JFrog VS Code Extension builds the Maven dependencies tree by running mvn dependency:tree
. View licenses and top issue severities directly from the pom.xml.
Important notes:
To have your project dependencies scanned by JFrog Xray, make sure Maven is installed, and that the mvn command is in your system PATH.
For projects which include the Maven Dependency Plugin as a build plugin, with include or exclude configurations, the scanning functionality is disabled. For example:
Npm Projects
Behind the scenes, the extension builds the npm dependencies tree by running npm list
. View licenses and top issue severities directly from the package.json.
Important: To have your project dependencies scanned by JFrog Xray, make sure the npm CLI is installed on your local machine and that it is in your system PATH. In addition, the project dependencies must be installed using npm install
.
Yarn v1 Projects
Behind the scenes, the extension builds the Yarn dependencies tree by running yarn list
. View licenses and top issue severities directly from the yarn.lock.
Important:
To have your project dependencies scanned by JFrog Xray, make sure the Yarn CLI is installed on your local machine and that it is in your system PATH.
Yarn v2 is not yet supported.
Pypi Projects
Behind the scenes, the extension builds the Pypi dependencies tree by running pipdeptree
on your Python virtual environment. It also uses the Python interpreter path configured by the Python extension. View licenses and top issue severities directly from your requirements.txt files. The scan your Pypi dependencies, make sure the following requirements are met:
The Python extension for VS Code is installed.
Depending on your project, Please make sure Python 2 or 3 are included in your system PATH.
Create and activate a virtual env as instructed in VS-Code documentation. Make sure that Virtualenv Python interpreter is selected as instructed here.
Open a new terminal and activate your Virtualenv:
On macOS and Linux:
On Windows:
In the same terminal, install your python project and dependencies according to your project specifications.
.NET Projects
For .NET projects which use NuGet packages as dependencies, the extension displays the NuGet dependencies tree, together with the information for each dependency. Behind the scenes, the extension builds the NuGet dependencies tree using the NuGet deps tree npm package.
Important:
Does your project define its NuGet dependencies using a packages.config file? If so, then please make sure the
nuget
CLI is installed on your local machine and that it is in your system PATH. The extension uses thenuget
CLI to find the location of the NuGet packages on the local file-system.The project must be restored using
nuget restore
ordotnet restore
prior to scanning. After this action, you should click on the Refresh button, for the tree view to be refreshed and updated.
Last updated