From nobody Mon Jun 17 16:00:46 2024 X-Original-To: questions@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 4W2vkZ6b15z5P814 for ; Mon, 17 Jun 2024 16:01:10 +0000 (UTC) (envelope-from dsh@bamus.cz) Received: from fhigh1-smtp.messagingengine.com (fhigh1-smtp.messagingengine.com [103.168.172.152]) (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 4W2vkY4y35z56vF for ; Mon, 17 Jun 2024 16:01:09 +0000 (UTC) (envelope-from dsh@bamus.cz) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bamus.cz header.s=fm2 header.b="UU/1EIi5"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=epAw0JJS; dmarc=none; spf=pass (mx1.freebsd.org: domain of dsh@bamus.cz designates 103.168.172.152 as permitted sender) smtp.mailfrom=dsh@bamus.cz Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 177D011401F1 for ; Mon, 17 Jun 2024 12:01:07 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute6.internal (MEProxy); Mon, 17 Jun 2024 12:01:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bamus.cz; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1718640067; x=1718726467; bh=N2bNWoUe9K 4fjJyvovURgeEPVny5Orew7TPoXq/F0Qs=; b=UU/1EIi5blZBw2rYrx6FDBm7lU aw3TyjNUUrau6JS6KM+qbeIhDhupyiNs0Wlad1lWpH80u297yKHmiKmjj8gBBWGL qjm1Csqh3U9uk3AOktugVuR2ywUYs6EtCBwtAJg2YtyfA8GaMUklUxLVDhIF0sCO iWRd1aavkiHcgfNNzoCNKDwSY6Xnz9Dn9QjUw0eHoQEHc9GYAhlX/QrN+pGOHbVx AzfLnBhWwmWy7Qiu1PatlpjBwP4tWozT43xRQ1rg59tjKQWoZtkcRx8gFyZQornz ZyJw8C2E0Q2rRdM3+/aL9gaLYV0E9nkzEcnWoStzLkQ+FX9jmx2mE26sKvLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1718640067; x=1718726467; bh=N2bNWoUe9K4fjJyvovURgeEPVny5 Orew7TPoXq/F0Qs=; b=epAw0JJSXDH8Kbw1jpoFJVbOPlVKxRRu8oLMsZPiAUnv haLToceM6kYD9rukCTScV90rACyGN7OFW0fFNjeaQabPEzuTmlRHFyFLrIBve/c4 qJCORW1lr6OGpEjcgJ5wKO3SbBhZSg4cU4JM2trCgzEQQW85W/XU/MD0z/5IrPzY LNDjja6b81rTZv0N3DCWgF5E8eDX4pK/6+lhOXWjOxTD9SpQOnIJNvt9dZAz68Dv ep+HWZEUECLMpTkaY/4/Ksh8kSIfvBEunvhBs20aaFpXYnXFOLPZwHrVM+UANXhW YohuEzDKDsMLupTKQLfhsQ3X/7dg3jOKQTVqijMhzw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvhedgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfffgvnhhishcuufhhrghpohhshhhnihhkohhvfdcuoegu shhhsegsrghmuhhsrdgtiieqnecuggftrfgrthhtvghrnhepjedukeektddvfffguefhvd dvuddujeelgfekveejueelleehudfgffefiefhudegnecuffhomhgrihhnpehgihhthhhu sgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegushhhsegsrghmuhhsrdgtii X-ME-Proxy: Feedback-ID: i3bf9476b:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 95BE336A0074; Mon, 17 Jun 2024 12:01:06 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-522-ga39cca1d5-fm-20240610.002-ga39cca1d List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Message-Id: <34a55024-5af0-4eff-96c6-056ea9283286@app.fastmail.com> In-Reply-To: <22e86a26-e2d5-47b3-8a28-26fde5c4d730@irk.ru> References: <22e86a26-e2d5-47b3-8a28-26fde5c4d730@irk.ru> Date: Mon, 17 Jun 2024 18:00:46 +0200 From: "Denis Shaposhnikov" To: questions@freebsd.org Subject: Re: /usr/ports/distfiles/go insanely oversized Content-Type: text/plain X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.59 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_DKIM_ALLOW(-0.20)[bamus.cz:s=fm2,messagingengine.com:s=fm1]; R_SPF_ALLOW(-0.20)[+ip4:103.168.172.128/27]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[103.168.172.152:from]; XM_UA_NO_VERSION(0.01)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:209242, ipnet:103.168.172.0/24, country:US]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[bamus.cz: no valid DMARC record]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[bamus.cz:+,messagingengine.com:+] X-Rspamd-Queue-Id: 4W2vkY4y35z56vF Hi, On Sun, 16 Jun 2024, at 11:15, Thor Ablestar wrote: > go/archivers_nfpm/pkg/mod/cache/download/github.com/!masterminds/goutils/@v > > contains the same files (name and size) as > > go/audio_gonic/pkg/mod/cache/download/github.com/!masterminds/goutils/@v > > What to do? How to manage it? If the problem cannot be solved I am going I use a port overlay and inside it I have custom Mk/Uses/go.mk: https://github.com/dsh2dsh/freebsd-ports/blob/master/Mk/Uses/go.mk ========================================================== .include "${USESDIR}/go.mk" .if !defined(_DSH_INCLUDE_USES_GO_MK) _DSH_INCLUDE_USES_GO_MK= yes . if ${go_ARGS:Mmodules} GO_GOPATH= ${DISTDIR}/go . endif # ${go_ARGS:Mmodules} .endif # !defined(_DSH_INCLUDE_USES_GO_MK) ========================================================== This change shares mod cache between all go ports, instead of separated mod cache for every go port. Actually I don't understand why go.mk separates go cache for every port, I don't see a reason for that. BTW, I use forked [poudriere-devel](https://github.com/dsh2dsh/poudriere) which shared go mod cache in DISTFILES_CACHE. As I see upstream's poudriere doesn't copy go dependencies back to DISTFILES_CACHE.