From nobody Fri Apr 19 16:44:04 2024 X-Original-To: freebsd-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 4VLgTb1CvSz5HMLk for ; Fri, 19 Apr 2024 16:44:19 +0000 (UTC) (envelope-from xaque208@gmail.com) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VLgTZ0h82z4cq7 for ; Fri, 19 Apr 2024 16:44:18 +0000 (UTC) (envelope-from xaque208@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=hNzbdGt4; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of xaque208@gmail.com designates 2a00:1450:4864:20::330 as permitted sender) smtp.mailfrom=xaque208@gmail.com Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-417e327773cso19152335e9.1 for ; Fri, 19 Apr 2024 09:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713545056; x=1714149856; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=fMslC+rkiIEVzKNR+l6nIEGz2hFkpsGfnPU2PGStIic=; b=hNzbdGt4auK+Ovto7MDUTKzNZhEkwCmTXA9cJfMH/N5E4aivldYGxG1wKgnTNt446n AaCyejmmsvhy+8sDUESk8F5ulz4DbzozlQ6m/xECX5+vbftWhL9WJfOrxJ+s2Is/iWFL On1wL91UDq5JIG+egFZVGTyY4p63THZ1IJIq0GsphMOVMacfSvboQK/5UoUGc6JkuTUR Y4EApTbzR4QSN5+ax1KBq6slS5+AJofOO/njG42gowynnai2yuhcDE6dqE5FD7sUmS7G G6loXpYZEnKaXLYrOh3Tfkul2PjbzEVPv4fk42aHyBS8Vi92ATNAsQIb2q6oUmhzKIvV NR8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713545056; x=1714149856; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=fMslC+rkiIEVzKNR+l6nIEGz2hFkpsGfnPU2PGStIic=; b=EUwL9kvmxTYuHBVzVFTemIUrv2hHgIg7geta6i44gQnJOjw6TwDrwZIfVoNLdutoRH F7/B0p8240kJJmLMVmneEeTQTYjx7XcWdYoyLjZ5VcqFLFotIeE/4kbBc+MWv36RHdBP UKZ31tr5mIpvEZKggLJDLhMfgxo1z3eG8nXNjFCvYPnko4rYDTu59wiNkYxWJedXUV4R V0RrFKXCEqhjfXW8OHUW75kN6FIhsgjbVTkLEOihcJOBoW8OD27LQWqRab5u+u2N2Tfy xbUqQWjxUDCWioKf5voWgBd0XrmYhjiiMxslhOj/BHaoUV8yuh0x0Olm/mvB0EutAKAx pWmg== X-Gm-Message-State: AOJu0YyMggwTOx4TNcCILht4JffUFrfMcnk0zcRzjr3mgCqNoYJCRI7y DXPct4HgqlI1F15GF9H9QXwT6Uvps+ALML1i95nkzXxc9WIQTJl0d/geQGHLaXGd8gr7H6BLwkq xJuI5KPPSHOh2YoGbreGnAUSyobyqGrhG X-Google-Smtp-Source: AGHT+IF0+A8IkKsHrWfoza1gY4AO2F9kQJrD5HK+4FVVw9P/2xf1DVcUHv579zP+OxiGDoIUW/ZI77MVVXluiw1NM6Y= X-Received: by 2002:adf:f1ca:0:b0:348:cd2c:d2fe with SMTP id z10-20020adff1ca000000b00348cd2cd2femr2421829wro.13.1713545055601; Fri, 19 Apr 2024 09:44:15 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 From: Zach Leslie Date: Fri, 19 Apr 2024 16:44:04 +0000 Message-ID: Subject: Porting a new Golang app: go mod replace relative path To: freebsd-ports@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::330:from] X-Rspamd-Queue-Id: 4VLgTZ0h82z4cq7 Good day, I've been trying to create a new port and running into an issue. Here is the port: https://github.com/zachfi/personal-ports/blob/main/sysutils/alloy/Makefile Here is the source of the issue: https://github.com/zachfi/personal-ports/blob/main/sysutils/alloy/Makefile When running `make makesum` to fetch all the dependencies, the local reference fails with the following error message. ===> Fetching github.com/grafana/alloy dependencies go: github.com/grafana/alloy/syntax@v0.1.0 (replaced by ./syntax): reading syntax/go.mod: open /usr/ports/distfiles/go/sysutils_alloy/grafana-alloy-v1.0.0_GH0/syntax/go.mod: no such file or directory *** Error code 1 I've spoken with the authors, and they don't intend to keep a `vendor` directory, nor do they intend to change the go mod replace line, so I'm left wondering what my options are. Is there a workaround for this? Can we specify in the port that for a specific module, to reference the module github.com/grafana/alloy/syntax at the same version as the port? Any advice would be appreciated. Cheers, -- Zach