Re: git: 57a5a76f292e - main - www/gitlab: major upgrade to 16.11.0

From: Matthias Fechner <mfechner_at_freebsd.org>
Date: Sun, 21 Apr 2024 18:05:48 UTC
Am 21.04.2024 um 18:11 schrieb Vladimir Druzenko:
> Look like upstream changed file go.mod:
>
> => go.mod doesn't seem to exist in 
> /usr/ports/distfiles//go/devel_gitlab-shell/gitlab-shell-v14.35.0.
> => Attempting to fetch 
> https://gitlab.com/gitlab-org/gitlab-shell/-/raw/v14.35.0/go.mod
> fetch: 
> https://gitlab.com/gitlab-org/gitlab-shell/-/raw/v14.35.0/go.mod: size 
> mismatch: expected 5395, actual 5375
> => Attempting to fetch 
> https://gitlab.com/gitlab-org/gitlab-shell/-/archive/v14.35.0/go.mod
> fetch: 
> https://gitlab.com/gitlab-org/gitlab-shell/-/archive/v14.35.0/go.mod: 
> Forbidden
> => Attempting to fetch 
> http://distcache.FreeBSD.org/ports-distfiles/go/devel_gitlab-shell/gitlab-shell-v14.35.0/go.mod 
>
> fetch: 
> http://distcache.FreeBSD.org/ports-distfiles/go/devel_gitlab-shell/gitlab-shell-v14.35.0/go.mod: 
> Not Found
> => Couldn't fetch it - please try to retrieve this
> => port manually into 
> /usr/ports/distfiles//go/devel_gitlab-shell/gitlab-shell-v14.35.0 and 
> try again.
> *** Error code 1 

I think it is not upstream, but more in the port or portframework 
itself. But I never had a problem before, maybe something was changed in 
ports the last 2 weeks.

curl -v https://gitlab.com/gitlab-org/gitlab-shell/-/raw/v14.35.0/go.mod
...
< content-length: 5375
...

But if I execute in devel/gitlab-shell:
make distclean
make makesum
ls -las ../../distfiles/go/devel_gitlab-shell/gitlab-shell-v14.35.0
...
   3 -rw-r--r--  1 idefix wheel   5395 Apr 21 21:01 go.mod
...

If I diff the version downloaded with curl and with `make makesum`:

> ❯ diff -u go.mod.orig go.mod
> --- go.mod.orig 2024-04-21 20:01:29.098380000 +0300
> +++ go.mod      2024-04-21 21:01:03.081898000 +0300
> @@ -1,6 +1,8 @@
>  module gitlab.com/gitlab-org/gitlab-shell/v14
>
> -go 1.20
> +go 1.21
> +
> +toolchain go1.22.2
>
>  require (
>         github.com/charmbracelet/git-lfs-transfer 
> v0.1.1-0.20240402115927-f0b226fa61cc
>
>
So it seems that the go.mod file is modified somehow.

Maybe someone has here an idea what happens here?

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