Download several go.mod files

From: Matthias Fechner <mfechner_at_freebsd.org>
Date: Fri, 18 Apr 2025 09:44:56 UTC
Dear all,

I need some help with the upgrade of devel/gitlab-runner.

The port is downloading the go.mod file from gitlab (as it is not 
published to go-proxy).
But now they added a go dep replacement that points into its own repository:
https://gitlab.com/gitlab-org/gitlab-runner/-/blob/main/go.mod?ref_type=heads#L264

so the go.mod is located in subfolder of the extracted source:
helpers/runner_wrapper/api/go.mod

My problem is now, that I must download the go.mod file from here:
https://gitlab.com/gitlab-org/gitlab-runner/-/tree/main/helpers/runner_wrapper/api?ref_type=heads
and the normal go.mod file from here:
https://gitlab.com/gitlab-org/gitlab-runner

Then I must place them in distfilesfolder in a subfolder, so they do not 
overwrite each other and make them in a way available that download the 
go dependencies can be fetched.

Does anyone have an idea, how to handle this special case?

The current Makefile can be found in git:
https://cgit.freebsd.org/ports/tree/devel/gitlab-runner/Makefile

Thanks a lot for any hints.

Gruß
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook