Skip to content

Simplify Makefiles

Jaime Martinez requested to merge remove-gopath-from-makefile into master

What does this MR do?

Simplifies Makefiles and removes need to use .GOPATH symlink.

Updates test.yaml to reuse the Go cache in between jobs instead of removing and downloading all the dependencies for every job.

Before this change, every job would remove the .GOPATH and redownload dependencies instead of reusing them from the cache

rm -rf bin .GOPATH gitlab-pages
mkdir -p ".GOPATH/src/gitlab.com/gitlab-org/"
ln -s ../../../.. ".GOPATH/src/gitlab.com/gitlab-org/gitlab-pages"
mkdir -p .GOPATH/test .GOPATH/cover
mkdir -p bin
ln -s ../bin .GOPATH/bin
touch .GOPATH/.ok
go get github.com/wadey/gocovmerge@v0.0.0-20160331181800-b5bfa59ec0ad
go: downloading github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad
go: downloading golang.org/x/tools v0.0.0-20200502202811-ed308ab3e770

This MR unblocks !452 (merged)

TODO

Edited by Jaime Martinez

Merge request reports