From nobody Sat Oct 14 19:55:56 2023 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S7Ddp1blnz4xBTC for ; Sat, 14 Oct 2023 19:56:14 +0000 (UTC) (envelope-from freebsd@funzi.org) Received: from mx.funzi.org (mx.funzi.org [195.201.94.23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4S7Ddm2DrHz4dkm for ; Sat, 14 Oct 2023 19:56:12 +0000 (UTC) (envelope-from freebsd@funzi.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=funzi.org header.s=dkim header.b=ije7ryT3; spf=pass (mx1.freebsd.org: domain of freebsd@funzi.org designates 195.201.94.23 as permitted sender) smtp.mailfrom=freebsd@funzi.org; dmarc=pass (policy=none) header.from=funzi.org Received: from mx.funzi.org (mx.funzi.org [192.168.0.2]) by mx.funzi.org (Postfix) with ESMTP id 4S7Ddc26m5zlkY for ; Sat, 14 Oct 2023 21:56:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=funzi.org; h= in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id:content-type; s=dkim; t=1697313357; x=1698177358; bh=dFHwYpVkMXGKSUH2Hg1lLCmg uPdoEHkqRNQordzwpqM=; b=ije7ryT3gklDqulNOPFmxp55Ldgtjkdl5g0KKnEj 9lNewPBvXXi35azukZq2HyGu1YhTRtpedQd0oilTFMV+inTKmJfzlAHtSWw2PPA0 UX5KdykDs0bXX3QbM9rbNWl3X92CZQE8i+jTZBeMNp3oPSTGTSb5Mu4y8Kj1gBAJ bS8= Received: from mx.funzi.org ([192.168.0.2]) by mx.funzi.org (mx.funzi.org [192.168.0.2]) (amavisd-new, port 10026) with ESMTP id QXf0AtZh6SIl for ; Sat, 14 Oct 2023 21:55:57 +0200 (CEST) Received: from [IPV6:2003:de:4f2a:7700:593:94cb:c7c1:18ee] (p200300dE4f2A7700059394cBc7C118eE.dip0.t-ipconnect.de [IPv6:2003:de:4f2a:7700:593:94cb:c7c1:18ee]) by mx.funzi.org (Postfix) with ESMTPSA id 4S7DdS6X2jzlfq for ; Sat, 14 Oct 2023 21:55:56 +0200 (CEST) Content-Type: multipart/alternative; boundary="------------lvPunUO2000v0CW0nFxZQZcZ" Message-ID: <676041e5-aecb-450c-be8d-f0d1185d2319@funzi.org> Date: Sat, 14 Oct 2023 21:55:56 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: go: errors parsing go.mod: unexpected input character '\x1f' Content-Language: de-LU To: ports@freebsd.org References: <7d322368-390e-40b0-98c0-b04bd52eb6bc@funzi.org> From: Christopher Beppler Organization: Christopher Beppler Computer- und Webdienstleistungen In-Reply-To: <7d322368-390e-40b0-98c0-b04bd52eb6bc@funzi.org> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.985]; DMARC_POLICY_ALLOW(-0.50)[funzi.org,none]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[funzi.org:s=dkim]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[funzi.org:+]; MLMMJ_DEST(0.00)[ports@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4S7Ddm2DrHz4dkm This is a multi-part message in MIME format. --------------lvPunUO2000v0CW0nFxZQZcZ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Am 14.10.23 um 21:39 schrieb Christopher Beppler: > Hey there porting experts, > > I am in the process of migrating the sysutils/loki port to=20 > USES=3Dgo:modules instead of the quite cumbersome GH_TUPLE shenanigans. > [...] Some progress, the error is a different one now (Updated Makefile below): =3D=3D=3D>=C2=A0 License AGPLv3 accepted by the user =3D=3D=3D>=C2=A0 License AGPLv3 accepted by the user =3D=3D=3D>=C2=A0=C2=A0 grafana-loki-2.9.1 depends on file: /usr/local/sbi= n/pkg - found =3D=3D=3D>=C2=A0=C2=A0 grafana-loki-2.9.1 depends on file: /usr/local/bin= /go120 - found =3D=3D=3D>=C2=A0=C2=A0 grafana-loki-2.9.1 depends on package: ca_root_nss= >0 - found =3D> v2.9.1.mod doesn't seem to exist in=20 /usr/ports/distfiles/go/sysutils_loki/loki-v2.9.1. =3D> Attempting to fetch=20 https://proxy.golang.org/github.com/grafana/loki/@v/v2.9.1.mod fetch: https://proxy.golang.org/github.com/grafana/loki/@v/v2.9.1.mod:=20 Not Found =3D> Attempting to fetch=20 http://distcache.FreeBSD.org/ports-distfiles/go/sysutils_loki/loki-v2.9.1= /v2.9.1.mod fetch:=20 http://distcache.FreeBSD.org/ports-distfiles/go/sysutils_loki/loki-v2.9.1= /v2.9.1.mod:=20 Not Found =3D> Couldn't fetch it - please try to retrieve this =3D> port manually into /usr/ports/distfiles/go/sysutils_loki/loki-v2.9.1= =20 and try again. *** Error code 1 If I open=20 https://proxy.golang.org/github.com/grafana/loki/@v/v2.9.1.mod, I can see not found:github.com/grafana/loki@v2.9.1: invalid version: module contain= s a go.mod file, so module path must match major version ("github.com/gra= fana/loki/v2") Is this a bug (similar to https://github.com/golang/go/issues/35732) in=20 go or am I missing something? > > This is the (reduced) Makefile I am using that reproduces the issue: > [...] Correcting this to: PORTNAME=3D=C2=A0=C2=A0=C2=A0 loki DISTVERSIONPREFIX=3D=C2=A0=C2=A0=C2=A0 v DISTVERSION=3D=C2=A0=C2=A0=C2=A0 2.9.1 CATEGORIES=3D=C2=A0=C2=A0=C2=A0 sysutils PKGNAMEPREFIX=3D=C2=A0=C2=A0=C2=A0 grafana- USES=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 go:modules USE_RC_SUBR=3D=C2=A0=C2=A0=C2=A0 loki GO_MODULE=3D=C2=A0=C2=A0=C2=A0 github.com/grafana/loki GO_TARGET=3D=C2=A0=C2=A0=C2=A0 ./cmd/loki ./cmd/loki-canary ./cmd/logcli=20 ./clients/cmd/promtail .include Having still cpe and USES_GITHUB=3Dyes enabled was wrong. --------------lvPunUO2000v0CW0nFxZQZcZ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 14.10.23 um 21:39 schrieb Christopher Beppler:
Hey there porting experts,

I am in the process of migrating the sysutils/loki port to USES=3Dgo:modules instead of the quite cumbersome GH_TUPLE shenanigans.
[...]

Some progress, the error is a different one now (Updated Makefile below):

=3D=3D=3D>=C2=A0 License AGPLv3 accepted by the user
=3D=3D=3D>=C2=A0 License AGPLv3 accepted by the user
=3D=3D=3D>=C2=A0=C2=A0 grafana-loki-2.9.1 depends on file: /usr/= local/sbin/pkg - found
=3D=3D=3D>=C2=A0=C2=A0 grafana-loki-2.9.1 depends on file: /usr/= local/bin/go120 - found
=3D=3D=3D>=C2=A0=C2=A0 grafana-loki-2.9.1 depends on package: ca= _root_nss>0 - found
=3D> v2.9.1.mod doesn't seem to exist in /usr/ports/distfiles/go/sysutils_loki/loki-v2.9.1.
=3D> Attempting to fetch https://proxy.golang.org/github.c= om/grafana/loki/@v/v2.9.1.mod
fetch: https://proxy.golang.org/github.c= om/grafana/loki/@v/v2.9.1.mod: Not Found
=3D> Attempting to fetch http://distcache.= FreeBSD.org/ports-distfiles/go/sysutils_loki/loki-v2.9.1/v2.9.1.mod fetch: http://distcache.= FreeBSD.org/ports-distfiles/go/sysutils_loki/loki-v2.9.1/v2.9.1.mod: Not Found
=3D> Couldn't fetch it - please try to retrieve this
=3D> port manually into /usr/ports/distfiles/go/sysutils_loki/loki-v2.9.1 and try again. *** Error code 1

If I open https://proxy.golang.org/github.c= om/grafana/loki/@v/v2.9.1.mod, I can see

not found: github.com/grafana/loki@v2.9.1: inval=
id version: module contains a go.mod file, so module path must match majo=
r version ("github.com/grafana/loki/v2")

Is this a bug (similar to https://github.com/golang/go/issues/35732) in go o= r am I missing something?


This is the (reduced) Makefile I am using that reproduces the issue:
[...]

Correcting this to:

PORTNAME=3D=C2=A0=C2=A0=C2=A0 loki
DISTVERSIONPREFIX=3D=C2=A0=C2=A0=C2=A0 v
DISTVERSION=3D=C2=A0=C2=A0=C2=A0 2.9.1
CATEGORIES=3D=C2=A0=C2=A0=C2=A0 sysutils
PKGNAMEPREFIX=3D=C2=A0=C2=A0=C2=A0 grafana-

USES=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 go:modules

USE_RC_SUBR=3D=C2=A0=C2=A0=C2=A0 loki

GO_MODULE=3D=C2=A0=C2=A0=C2=A0 github.com/grafana/loki
GO_TARGET=3D=C2=A0=C2=A0=C2=A0 ./cmd/loki ./cmd/loki-canary ./cmd/l= ogcli ./clients/cmd/promtail

.include <bsd.port.mk>

Having still cpe and USES_GITHUB=3Dyes enabled was wrong.

--------------lvPunUO2000v0CW0nFxZQZcZ--