Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzeR0-005cMY-TV for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Apr 2024 15:21:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rzeQz-00Fr5A-3U for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Apr 2024 15:21:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzeQy-00Fr52-Q8 for pgsql-hackers@lists.postgresql.org; Wed, 24 Apr 2024 15:21:20 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzeQw-002j4V-2k for pgsql-hackers@lists.postgresql.org; Wed, 24 Apr 2024 15:21:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 43OFLDXS3709289; Wed, 24 Apr 2024 11:21:13 -0400 From: Tom Lane To: Greg Sabino Mullane cc: pgsql-hackers@lists.postgresql.org, Peter Eisentraut , Magnus Hagander Subject: Re: Tarball builds in the new world order In-reply-to: References: <3552543.1713909947@sss.pgh.pa.us> Comments: In-reply-to Greg Sabino Mullane message dated "Wed, 24 Apr 2024 10:38:31 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3709287.1713972073.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 24 Apr 2024 11:21:13 -0400 Message-ID: <3709288.1713972073@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Greg Sabino Mullane writes: > On Tue, Apr 23, 2024 at 6:06 PM Tom Lane wrote: >> Now, if we just do it exactly like that >> then trying to "make dist" without setting PG_COMMIT_HASH will >> fail, since "git archive" has no default for its >> argument. I can't quite decide if that's a good thing, or if we >> should hack the makefile a little further to allow PG_COMMIT_HASH >> to default to HEAD. > Just having it fail seems harsh. What if we had plain "make dist" at least > output a friendly hint about "please specify a hash"? That seems better > than an implicit HEAD default, as they can manually set it to HEAD > themselves per the hint. Yeah, it would be easy to do something like ifneq ($(PG_COMMIT_HASH),) $(GIT) ... else @echo "Please specify PG_COMMIT_HASH." && exit 1 endif I'm just debating whether that's better than inserting a default value. regards, tom lane