summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-30 23:05:42 -0600
committermo khan <mo.khan@gmail.com>2020-04-02 00:08:43 -0600
commitbfd7459419921ff37ee500f0698862eea6788675 (patch)
tree9749333a7c8878b833b4642afe3071cf1c14012c /run.sh
parent43bcbbd04342faa497725c5b0be3c6d944d850da (diff)
Reproduce failure with go modules scanning
* Install sudo for existing configurations * Detect dependencies in a gomodules project * Add CHANGELOG entry and bump version * Symlink to $GOPATH for non go modules projects * Remove problematic go get setup
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh15
1 files changed, 2 insertions, 13 deletions
diff --git a/run.sh b/run.sh
index 3f8ee6a..cfe19fc 100755
--- a/run.sh
+++ b/run.sh
@@ -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