#!/bin/bash
# Copyright 2021 OpenSSF Scorecard Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

go get github.com/org/name@some_tag
go install github.com/org/name@some_tag
go install

/bin/go install github.com/org/name@some_tag
go get github.com/org/name@some_tag
go get github.com/org/name@1111111111ccccccccccaaaaaaaaaa9999999999
go get somerepo.com/org/name@1111111111ccccccccccaaaaaaaaaa9999999999
go get another-repo.com/org/name@1111111111ccccccccccaaaaaaaaaa9999999999
go get somerepo.com/org/name@v1.2.3
go get somerepo.com/org/name@v1.2.3-semver
go get somerepo.com/org/name@v1.2.3-semver+great
go get -insecure somerepo.com/org/name@v1.2.3
go get -insecure somerepo.com/org/name@v1.2.3-semver
go get -insecure somerepo.com/org/name@v1.2.3-semver+great
go get somerepo.com/org/name@v1
go get somerepo.com/org/name@v1.2
go get somerepo.com/org/name@none
go get somerepo.com/org/name@latest
go get somerepo.com/org/name@patch
go get somerepo.com/org/name@upgrade
go get another-repo.com/org/name@release
go get local-folder
go get ./local-folder
go get /some/local/folder
go get ../../some/local/folder
go get github.com/org/name@1111111111ccccccccccaaaaaaaaaa9999999999
go install -Y github.com/org/name@1111111111ccccccccccaaaaaaaaaa9999999999
go get github.com/org/name@1111111111ccccccccccaaaaaaaaaa9999999999

go mod download
go build -a bla

pip install -r requirements.txt
/bin/pip install -r requirements.txt
pip3 install
/bin/pip install -U
pip install
pip install -r any_file
pip3 install -r bla-requirements.txt
pip3 install -r bla-requirements.txt --require-hashes
pip3 install --require-hashes -r bla-requirements.txt

pip install somepkg
pip3 install somepkg==1.2.3
/bin/pip3 install -X -H somepkg

pip install --no-deps --editable .
pip install --no-deps -e .
pip install --no-deps -e hg+https://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567#egg=package
pip install --no-deps -e svn+https://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567#egg=package
pip install --no-deps -e bzr+https://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567#egg=package
pip install --no-deps -e git+https://github.com/username/repo.git
pip install --no-deps -e git+https://github.com/username/repo.git#egg=package
pip install --no-deps -e git+https://github.com/username/repo.git@v1.0
pip install --no-deps -e git+https://github.com/username/repo.git@v1.0#egg=package
pip install --no-deps -e git+https://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567
pip install --no-deps -e git+https://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567#egg=package
pip install --no-deps -e git+https://github.com/username/repo@0123456789abcdef0123456789abcdef01234567#egg=package
pip install --no-deps -e git+http://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567#egg=package
pip install --no-deps -e git+ssh://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567#egg=package
pip install --no-deps -e git+git://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567#egg=package
pip install --no-deps -e git://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567#egg=package
pip install -e git+https://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567#egg=package
pip install --no-deps -e . git+https://github.com/username/repo.git
pip install --no-deps -e . git+https://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567#egg=package

python -m notpip -X bla

python -m pip install -r file
python -m pip install 'some-pkg==1.2.3'
python -m pip install 'some-pkg>1.2.3'

python -m pip install bla.whl 'some-pkg>1.2.3'
python -m pip install 'some-pkg>1.2.3' bla.whl
python -m pip install "some-pkg>1.2.3" bla.whl
python -m pip install bla.whl
python -m pip install bla.whl "some-pkg>1.2.3"

python2.7 -m pip install -X -H somepkg \
    'some-ther==1.2.3' \
    'somebla<3.4.5'

python -m pip install -X -H somepkg \
    'some-ther==1.2.3' \
    'somebla<3.4.5'

python3 -m pip install -X -H somepkg \
    'some-ther==1.2.3' \
    'somebla<3.4.5'

python -m pip install --no-deps -e git+https://github.com/username/repo.git
python -m pip install --no-deps -e git+https://github.com/username/repo.git@0123456789abcdef0123456789abcdef01234567#egg=package

npm install typescript
npm install -g typescript
npm i typescript
npm i -g typescript
npm install
npm install -g
npm i
npm ci
npm install-test
npm install-ci-test

choco install 'some-package'
choco install 'some-other-package'
choco install --requirechecksum 'some-package'
choco install --requirechecksums 'some-package'
choco install --require-checksums 'some-package'

nuget install some-package
nuget restore -LockedMode
dotnet restore --locked-mode
msbuild.exe /t:restore /p:RestoreLockedMode=true
nuget install some-package -Version 1.2.3
nuget install packages.config
dotnet add package some-package
dotnet add SomeProject package some-package
dotnet build
dotnet add package some-package -v 1.2.3
dotnet add package some-package --version 1.2.3
