Re: git: bd7b119c2f9e - main - www/gitlab-pages: update to 15.7.5

From: Matthias Fechner <mfechner_at_freebsd.org>
Date: Tue, 31 Jan 2023 05:27:46 UTC
Am 31.01.2023 um 01:56 schrieb Yasuhiro Kimura:
> From: Matthias Fechner <mfechner@FreeBSD.org>
> Subject: git: bd7b119c2f9e - main - www/gitlab-pages: update to 15.7.5
> Date: Mon, 30 Jan 2023 21:31:46 GMT
>
>> The branch main has been updated by mfechner:
>>
>> URL: https://cgit.FreeBSD.org/ports/commit/?id=bd7b119c2f9e4b278215bca23fcdc785a4167817
>>
>> commit bd7b119c2f9e4b278215bca23fcdc785a4167817
>> Author:     Matthias Fechner <mfechner@FreeBSD.org>
>> AuthorDate: 2023-01-30 21:13:00 +0000
>> Commit:     Matthias Fechner <mfechner@FreeBSD.org>
>> CommitDate: 2023-01-30 21:25:39 +0000
>>
>>      www/gitlab-pages: update to 15.7.5
>>      
>>      Required for gitlab-ce 15.7 update
>>      Changelog:
>>      https://gitlab.com/gitlab-org/gitlab-pages/-/blob/master/CHANGELOG.md
> After this commit `make describe` causes following warnings.
>
> yasu@rolling-vm-freebsd2[1022]% pwd
> /usr/ports/www/gitlab-pages
> yasu@rolling-vm-freebsd2[1023]% make describe
> make: "/usr/ports/Mk/Uses/go.mk" line 192: warning: duplicate script for target "go-post-fetch" ignored
> make: "Makefile" line 35: warning: using previous script for "go-post-fetch" defined here
> make: "/usr/ports/Mk/Uses/go.mk" line 193: warning: duplicate script for target "go-post-fetch" ignored
> make: "Makefile" line 35: warning: using previous script for "go-post-fetch" defined here
> gitlab-pages-15.7.5|/usr/ports/www/gitlab-pages|/usr/local|Official GitLab Pages daemon|/usr/ports/www/gitlab-pages/pkg-descr|swills@FreeBSD.org|www|||/usr/ports/lang/go119 /usr/ports/security/ca_root_nss|/usr/ports/lang/go119||https://gitlab.com/gitlab-org/gitlab-pages
> yasu@rolling-vm-freebsd2[1024]%
>
> ---
> Yasuhiro Kimura

yes I'm aware of the warning.
The problem is that gitlab will not publish [1] the go.mod file anymore 
to the go proxy but they will host it in there environment.

And the current Mk/Uses/go.mk cannot be configured in a way that the 
go.mod file can be downloaded from another site.

What I do now is reuse most of the definitions from go.mk, but redefine 
the fetch part to be able to download the go.mod from gitlab directly.

I think the perfect solution would be the extend go.mod that it can also 
download the go.mod from a custom location.

[1]: https://gitlab.com/gitlab-org/gitlab-pages/-/issues/824#note_1252658965

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