Skip to content

Add go 1.16 support and limit GOPATH shimming to projects not using go modules

Lucas Charles requested to merge support-go-1.16 into master

What does this MR do?

feat: Limit GOPATH shimming to projects not using go modules

Previously we copied all projects and deps into the GOPATH unconditionally, but we should limit this shimming to only projects which aren't using go modules.

Since go1.16 changes the default behavior to GO111MODULE=on we must explicitly set to off when no modules are detected.

This should be backwards compatible.

Tested against browserker which relies on embed (introduced in 1.16):

What are the relevant issue numbers?

Relates to gitlab-org/gitlab#327735 (closed)

Does this MR meet the acceptance criteria?

Edited by Zach Rice

Merge request reports