From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kP84IwhYmmJjxAAAbAwnHQ (envelope-from ) for ; Fri, 03 Jun 2022 20:50:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CKsuIwhYmmK6uwAA9RJhRA (envelope-from ) for ; Fri, 03 Jun 2022 20:50:48 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1795FD0FD for ; Fri, 3 Jun 2022 20:50:43 +0200 (CEST) Received: from localhost ([::1]:45070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxCNd-00071Y-Sd for larch@yhetil.org; Fri, 03 Jun 2022 14:50:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxCNW-0006yd-BV for gwl-devel@gnu.org; Fri, 03 Jun 2022 14:50:34 -0400 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21080) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxCNR-0003wz-C3 for gwl-devel@gnu.org; Fri, 03 Jun 2022 14:50:31 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1654282226; cv=none; d=zohomail.com; s=zohoarc; b=WtfO8CLBLAoh4V+INe9kOd12VYyPprrjxG6tno5IXii8YC75eydjxOC4+siB2oyn1jNJKMENef/n/d/Mbgo4cF+kmONKS17SUF0odWRPAftNOaYKk6s+NT8VglGysdSwD3q/1+uwMXrW+zXodazzBnhElMS+wQ6Gl6A6lChWYMU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654282226; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=4o0WFBsDE2mDbgNJyI8D2u9uU9UcvV2rMCWE4c9lz0Y=; b=MOZmkJcC4B7Fa6EcBNTT7Kb7VJ9XvOWaf2Q591wcCB27eyvAQhQfU2FsmlmjQS/a3vn47YHn1U4IOICVulNPGc0uscIX2HccwT9zuoLwFZpfV7Z9qBXRV/RNf2WCf8MsSqpNzX9SIVq09A6dH1hYfOTak+RNn5qMaJaMANy8oFo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1654282226; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=4o0WFBsDE2mDbgNJyI8D2u9uU9UcvV2rMCWE4c9lz0Y=; b=alydDO9PiWNxffb+t38txTyIG2WAYKX9QW+kZaS+EB125uLIhdDXG3MWTLmXP0op No99nY+RQcZHwquNHFlhEPqOf6N0SuP0TcQ6oeT/1dduufaS7tarsnGdEutDqK1Na1J ufhzt2ILtG0gjLHnJxUMh/nqiEtPxfTEl7kF2veE= Received: from localhost (46-108-142-46.pool.kielnet.net [46.142.108.46]) by mx.zohomail.com with SMTPS id 1654282224902493.0418729016527; Fri, 3 Jun 2022 11:50:24 -0700 (PDT) References: <87y1yf9ga1.fsf@laura> User-agent: mu4e 1.6.10; emacs 28.1 From: Ricardo Wurmus To: Olivier Dion Cc: gwl-devel@gnu.org Subject: Re: Auto-create processe's output-path? Date: Fri, 03 Jun 2022 20:43:20 +0200 In-reply-to: <87y1yf9ga1.fsf@laura> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87r14560pd.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.50; envelope-from=rekado@elephly.net; helo=sender4-of-o50.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: gwl-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gwl-devel-bounces+larch=yhetil.org@gnu.org Sender: "gwl-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654282243; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4o0WFBsDE2mDbgNJyI8D2u9uU9UcvV2rMCWE4c9lz0Y=; b=d+g7O61qen9aBGLlqwTpvZG/qKNaQKGZ09WQbfuE17TgIp8r3aC0YUK4cnaqqJwpBKc8my 81TfR2eNqVBr+K/VfRzvqmJDSD+vDvA3CuMci2MJYtM5dNKwz1IlDQgevVkno+9En1BuQy s0oebV0zwSRrHw9sCXkyiJfspd1raCzLnwPhmdy5mCjuVNZ2AYDm0HLgSXqJzeLDuHebm9 rRcBLdw5gGVWkLuqMxH/oLpZQ/0eQAyTmXcIorcAjZv0Z1ycwBG2IUhVW0hDXt08bgjek1 eeofhA0tmE/cvnZmFjj/+nWZIlFFnFKHhZB6bC6xMNMOBhgKUlQ48KD73vrcfg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1654282243; a=rsa-sha256; cv=pass; b=VMPE3pZ00DL302AoaxplXfyotpkm49yZYFr6J+FjoWi9ml1jdAWBlVY6+JziiHKYkfkew0 xbSEpVX0Mrr9kq85X7W/I99fhzpNuhzsMS/xuIym7ijJ75GIR3Ub1SF0Y6r+ylaMTP7XHE 16x26DKYFgJpz0Y6Ntp9XdEqfQFtaJdeXngu4x7tgHBqRmoXXwzx+KNDnF1994y1QI0nSA Wvgq4o9lvi3jArG9zrZoAWaM94EK4m5KPcF9YW8u+5/df1E78f72lBy+ytb0k4m6oD8a51 wLJJO9synGA45mqtTZET19Bv0JhzyWHbEnjavcRsKudP8Q5SqZDVHctGT6KTUA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=alydDO9P; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=alydDO9P; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1795FD0FD X-Spam-Score: -2.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: ROrT4VwGErhT Olivier Dion via writes: > Hi, > > I think it would be nice if GWL automatically creates the `output-path` > of a process.=20=20 > > Currently, I have to do the following: > > output-path "output-of" > packages ... "coreutils" ... > # { > ... > mkdir {{output-path}} > ... > } > > I don't really like this because now I need "coretutils" as a dependency > -- which I tend to reduce to a minimal -- and I also need to manually > call `mkdir` in my script. I agree that using coreutils just to have mkdir only to create an output location is inelegant. That said: I don=E2=80=99t know if we should have OUTPUT-PATH at all. It doesn=E2=80=99t seem to do much other than setting the =E2=80=9Cout=E2=80= =9D environment variable. It seems to me that this is a vestigal remnant from simpler times. It is also used in PROCESS-OUTPUTS as a shared prefix for all declared outputs. Is this really useful enough to justify respecting it in PROCESS-OUTPUTS? Does it even work correctly with caching and containerization? (Maybe we should just remove it=E2=80=A6?) > Would it be possible for GWL to do this instead? I guess we could have the GWL do this, but in some cases it may not be desirable. There are tools that get all offended when the parent directory of their output files already exists. --=20 Ricardo