Skip to content

Workhorse: move go.mod to top level

Jacob Vosmaer requested to merge jv-workhorse-go-mod into master

What does this MR do?

This creates a go.mod module definition for gitlab.com/gitlab-org/gitlab. Workhorse then becomes gitlab.com/gitlab-org/gitlab/workhorse.

There is one clear downside to this change: the go command gets confused by our top-level /vendor directory, which has nothing to do with Go. To circumvent this one must call either go -mod=mod or set GOFLAGS=-mod=mod.

But the upside is that all current and future dependency scanning and code analysis tools we run on this repository will pick up the fact that there is Go code and include it in their scans.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Jacob Vosmaer

Merge request reports