Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

WhiteSource Advise searches for the following text patterns in these languages:

Python (pip)

Code Block
pip install {package name}=={version}

Ruby (bundler)

One of the following

Code Block
gem install {package name}={version}

...

Code Block
gem install {package name}:{version}

...

JavaScript (NPM)

Code Block
npm install {package name}@{version}

...

.NET (NuGet)

One of the following:

Code Block
install-package {package name} –package {version}

...

Code Block
nuget update {package name} –package {version}

Java (Maven)

One of the following:

Code Block
<dependency>

      <groupId>{group}</groupId>

      <artifactId>{artifact}</artifactId>

      <versionId>{version}</versionId>

   </dependency>

...

Code Block
import (

                “github.com/{owner1}/{repository1}”

                “github.com/{owner2}/{repository2}”

                ...

)

PHP (Composer)

One of the following:

Code Block
"require": {

                “{group}/{artifact}”: “{version}”

}

...

Code Block
"require-dev": {

                “{group}/{artifact}”: “{version}”

}

Scala (SBT)

One of the following:

Code Block
librarydependencies += "{group}" % "{artifact}" % "{version}"

...

Code Block
libraryDependencies ++= Seq(

    "{group-1}" % "{artifact-1}" % "{version-1}",

    "{group-2}" % "{artifact-2}" % "{version-2}" % "test"

)

Rust (Cargo)

One of the following:

Code Block
cargo install --version {version} {package name}

...

Code Block
cargo update --package {package name} --precise {version}

Haskell (Cabal)

One of the following:

Legacy:

...

Code Block
cabal v2-install {package name}-{version}

OCaml (Opam)

One of the following:

Code Block
opam install {package name}

...