diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-02 15:11:12 +0000 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-02 15:11:12 +0000 |
| commit | 2d200e2bcecb91eadc5ee211f5bb65aafa645054 (patch) | |
| tree | 9749333a7c8878b833b4642afe3071cf1c14012c /run.sh | |
| parent | 43bcbbd04342faa497725c5b0be3c6d944d850da (diff) | |
| parent | bfd7459419921ff37ee500f0698862eea6788675 (diff) | |
Merge branch '10128-go-modules' into 'master'v3.5.0
Improve license detection in go modules projects
See merge request gitlab-org/security-products/license-management!129
Diffstat (limited to 'run.sh')
| -rwxr-xr-x | run.sh | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -9,6 +9,8 @@ export BUNDLE_WITHOUT="development:test" export CI_API_V4_URL="${CI_API_V4_URL:-https://gitlab.com/api/v4}" export CI_DEBUG_TRACE=${CI_DEBUG_TRACE:='false'} export DOTNET_CLI_TELEMETRY_OPTOUT=1 +export GO111MODULE=on +export GOPATH=${HOME}/.local export HISTFILESIZE=0 export HISTSIZE=0 export LANG=C.UTF-8 @@ -61,18 +63,6 @@ function prepare_javascript() { fi } -function prepare_golang() { - if find . -name "*.go" -printf "found" -quit | grep found > /dev/null; then - if [[ ( ! -f glide.lock ) && ( ! -f vendor/manifest ) && (! -f Gopkg.lock ) && (! -f go.mod ) ]]; then - # Only install deps if not using glide, govendor or dep - # Symlink the project into GOPATH to allow fetching dependencies. - ln -sf "$(realpath "$PWD")" /gopath/src/app - pushd /gopath/src/app > /dev/null - go get || true - fi - fi -} - function prepare_java() { [[ -f build.gradle ]] && [[ ! -f gradlew ]] && \ gradle build ${GRADLE_CLI_OPTS:+-x test} @@ -87,7 +77,6 @@ function prepare_project() { asdf install 1> /dev/null prepare_javascript || true - prepare_golang || true prepare_java || true prepare_dotnet || true else |
