From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UKP4HVfYTGEUZAEAgWs5BA (envelope-from ) for ; Thu, 23 Sep 2021 21:41:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GAaMGVfYTGG9PgAAB5/wlQ (envelope-from ) for ; Thu, 23 Sep 2021 19:41:11 +0000 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 DFAAF9E61 for ; Thu, 23 Sep 2021 21:41:10 +0200 (CEST) Received: from localhost ([::1]:56534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTUak-0000xK-1y for larch@yhetil.org; Thu, 23 Sep 2021 15:41:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTUac-0000xB-Mp for guix-patches@gnu.org; Thu, 23 Sep 2021 15:41:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTUab-0007iB-Vk for guix-patches@gnu.org; Thu, 23 Sep 2021 15:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTUab-0003hi-Sv for guix-patches@gnu.org; Thu, 23 Sep 2021 15:41:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50420] [PATCH 0/2] Add sendgmail. Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Sep 2021 19:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50420 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 50420@debbugs.gnu.org, Philip McGrath Received: via spool by 50420-submit@debbugs.gnu.org id=B50420.163242603114137 (code B ref 50420); Thu, 23 Sep 2021 19:41:01 +0000 Received: (at 50420) by debbugs.gnu.org; 23 Sep 2021 19:40:31 +0000 Received: from localhost ([127.0.0.1]:55933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTUa7-0003fx-9j for submit@debbugs.gnu.org; Thu, 23 Sep 2021 15:40:31 -0400 Received: from out1.migadu.com ([91.121.223.63]:45532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTUa5-0003ff-0V for 50420@debbugs.gnu.org; Thu, 23 Sep 2021 15:40:29 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1632426027; h=from:from: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; bh=qSh7bo+tUMvx3o+ZizjPWA/OZFhjGfC+YPC6dLQU1Tg=; b=EoJOA1Q7a0KWPkwJyDpO763ZUOY8+/7ujMPM7rWLkWaS5cJ0ueg/uK2aaXtScJtlL9J1sK ZE7rypRtD7Nu2XmMvOqNYFDFtOln4TBFRo9qGAKINaHufDFQeyPnSJUiHLK4Yb5ssoa/zG wXqq92jo3+YSRC+eblDFrRo2PympbIo= From: Sarah Morgensen References: <20210906053607.505949-1-philip@philipmcgrath.com> <871r5r7baf.fsf@gnu.org> <899b1ee1-2223-8780-729f-ec06e793ad84@philipmcgrath.com> Date: Thu, 23 Sep 2021 12:40:24 -0700 In-Reply-To: (Leo Famulari's message of "Thu, 23 Sep 2021 14:42:46 -0400 (53 minutes, 46 seconds ago)") Message-ID: <86fstvkrmf.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632426071; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qSh7bo+tUMvx3o+ZizjPWA/OZFhjGfC+YPC6dLQU1Tg=; b=gpzQlvnbMWon+35grAnog+iDgKukSpr9k8E3BoV5QrSqBWcjC0eest8S3MojwvUhpKZ5Fc vR1PmbJL9xLEUW9XxbWgEg4dPNNdBPYPWlXto2jFMc37jXPJIkVKu1v+LQa/AQBUTac9ZS zSYtvevAF+vBSLGrwV1eTxFxAeFm1P7U/C+jQGHong3iHYbKF+LRRtJ0J4JayDcBOF1Hgm 9FmXL+1eisiZ5b5qtUVjfym0SBDL/mIhSqfHKDt7A2+k99DuPaaC9VllghFCHzpdPKibJ9 trOwUSG6GPTvtPjQBt7ZYdnDQxjE5UlyVMnNq7Z8SdpHP917fH26SwPE1jm6hg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632426071; a=rsa-sha256; cv=none; b=gMXwP+wzJ9gvvW7+6JrQhKpOF6aWDld0nlJTUUXIQp9OTHQYs+yp5J5u+htXBNfshwiG7z MKJ6pdn8DzVv5w5HQwA+fHxpSACBD3x7qf70BOJ6tDHU+qMHXXQtQNLCnyQBj6KFOTINvW P4PrP4x+7ypbPM3U5ULxGVPOw6+VTNwew5ApLXD6K5FB6eNuTBt7O/ZoiWpHnO1ixOpZve V/HkMGxjSqYJJTcbgKyLQKewTAd575HS75gMv7ki1mz6vFn1YTMEPGRdhDGRw2RxzNOuhA ZEc8eWfpoRStmfmcNRBsLxea33cMlzI6N4TPYSOvqyx2W6ufwwYiAdG/F2tqwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=EoJOA1Q7; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=EoJOA1Q7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: DFAAF9E61 X-Spam-Score: -0.29 X-Migadu-Scanner: scn1.migadu.com X-TUID: D5HjvC9btd6z Hi all, Leo Famulari writes: > On Thu, Sep 23, 2021 at 05:59:44AM -0400, Philip McGrath wrote: >> That would make sense to me: I'm not sure what the general rule is for >> breaking out of the language-specific naming conventions, and I'm not a = Go >> programmer, but =E2=80=9Cgo-github-com-google-gmail-oauth2-tools-go-send= gmail=E2=80=9D >> seemed especially egregiously long. > > In general, end-user applications (like a CLI program) can use a simple > name like 'sendgmail', which is what users expect. > > Libraries, on the other hand, should use the long name. For Go, this > should match the "import path" of the program, with slashes changed to > hyphens, plus a "go-" prefix. > > Internally to Go software, the "import path" is the true name of the > program: > > https://golang.org/doc/gopath_code#ImportPaths > > For example, there could be multiple Go libraries named 'sendgmail', but > Go software distinguishes them by including their network location in > the name. > > We could invent another naming system, but Go naming is already so > complicated that I think it's worth trying to match the internal "import > path" names. For what it's worth, I concur, especially since the importer won't see a package with an "incorrect" name, so we may end up with duplicates. In the rare case that a module contains both a library and commands, the command package can inherit from the library package, and set `#:install-source? #f' (and #:import-path, if necessary). -- Sarah