From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id V/ISKMHKTGHkTAEAgWs5BA (envelope-from ) for ; Thu, 23 Sep 2021 20:43:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KHgFI8HKTGHiHQAAB5/wlQ (envelope-from ) for ; Thu, 23 Sep 2021 18:43:13 +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 397E616B02 for ; Thu, 23 Sep 2021 20:43:13 +0200 (CEST) Received: from localhost ([::1]:53288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTTge-0001r4-DE for larch@yhetil.org; Thu, 23 Sep 2021 14:43:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTTgU-0001qh-Q1 for guix-patches@gnu.org; Thu, 23 Sep 2021 14:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTTgU-0000Pm-Iy for guix-patches@gnu.org; Thu, 23 Sep 2021 14:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTTgU-0001wo-GQ for guix-patches@gnu.org; Thu, 23 Sep 2021 14:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50420] [PATCH 0/2] Add sendgmail. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Sep 2021 18:43:02 +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: Philip McGrath Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 50420-done@debbugs.gnu.org Received: via spool by 50420-done@debbugs.gnu.org id=D50420.16324225777476 (code D ref 50420); Thu, 23 Sep 2021 18:43:02 +0000 Received: (at 50420-done) by debbugs.gnu.org; 23 Sep 2021 18:42:57 +0000 Received: from localhost ([127.0.0.1]:55864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTTgP-0001wV-AI for submit@debbugs.gnu.org; Thu, 23 Sep 2021 14:42:57 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:50475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTTgN-0001wG-BS for 50420-done@debbugs.gnu.org; Thu, 23 Sep 2021 14:42:55 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 7459A3201F4B; Thu, 23 Sep 2021 14:42:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 23 Sep 2021 14:42:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=qhLMWo5tWcrMYdADPQU6PGzO+WwuOcDMvzZ+lT3uVKc=; b=x0X3q+pomNtp xp5jMgVvBMTDuwgO8K4iIT0jAXc4kJDB9bAG07KnnmzdmmkdxGtgOTMdwaKGOqG7 znXbfla2IQiAHjHraRAR3/HGDZiTRkCqnSqcsGsG+3XlAUZUP+0WA9Ek04lXU1FZ onBnYftBZtMIf6M2NsWz7/Lpg8xm9C8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=qhLMWo5tWcrMYdADPQU6PGzO+WwuOcDMvzZ+lT3uV Kc=; b=KOelqiqq36lsGSOPRRP4DayVVpI34lQB0eZ87KKG2ij907RqBSrK+GkAf SWvQ5rXQ/kPatKmdF2jSEaDFx6hdOCZBeEArwsofupGqC0sS8XKCEUdxrc52plED RWfQu+8/YBWDNxgLDYgdDtIs+wcb4m88SYscXNFqSizyI7bdKgidM8D79poceJeP ZTTgdW+Qfc3qnOnVAtdOMqbG++Lj82uDDf5BgV8J6F7juXqHVOXogebNiPedk5P2 nlvRChNt5yLAG9ZJdFBbIPyPhAOy6PH76qkW7a0SUmYuutck9FpXbTfgpUof4far +dJZ/vscSbPhjOulOhyDLVxDDg8xQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeiledguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggugfgjsehtkeertddttdejnecuhfhrohhmpefnvgho ucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrg htthgvrhhnpeekheegjeetfffgheefvdefgeetkeetheegleeltdffveefjeeiheevieeh geekteenucffohhmrghinhepghholhgrnhhgrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghm vg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Sep 2021 14:42:48 -0400 (EDT) Date: Thu, 23 Sep 2021 14:42:46 -0400 From: Leo Famulari Message-ID: References: <20210906053607.505949-1-philip@philipmcgrath.com> <871r5r7baf.fsf@gnu.org> <899b1ee1-2223-8780-729f-ec06e793ad84@philipmcgrath.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <899b1ee1-2223-8780-729f-ec06e793ad84@philipmcgrath.com> 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=1632422593; 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=qhLMWo5tWcrMYdADPQU6PGzO+WwuOcDMvzZ+lT3uVKc=; b=qB5NQVsult/eMJVcHfDZHU23M060GxeStVHKMjQgnGBQ2cewMGABbkzsjUFt5esVjBFBoi JJA8Fuz9j8BCZY9a3rW+KpicdXBGkPum/KlllhwWPX3OCmnRBGqL9jCLhdXkDdCTATOYRS aiJpI5JUIXCV8MKjIe/zSgFRgprYHQnFtKR98AGS6JK4FGYBmuZ1y/mFBBG1UjyoJcocCV iK/KLOZoKKXTFxlk38wbMbWeveIkHsHF1fFsWJM1t+gXRsMi7VggCRAaxcG0eHrDMPhpxZ UHhXFjPRUnWqxMK8drmHlr9e9QgN+b2e4Z5VZ1AAEZJKtCXrp1A4SOHWVxQ4xg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632422593; a=rsa-sha256; cv=none; b=uvSlwO45beq2kFXfcUckmHdT/biqTqspevgh+HMmMt8iK1465DSDSokwKY1cGFNRO9R8oM Kfkcmxfz31IEmnkdnPKV0dlGL8JgfyJupkSAYjMTq4ySgHvM1rE+m7gqHgvcNHg7cbuEIv HAL+oSSym1q3ND+M+lnlHOg3oSGfiZzqgnv//njzbxDP4kBPrUg1mNzEsEg8LjrR7Ubu4M 9FmXsJ0T4IfBCDd+HQnAUyxSqvRcUD7wMXHpQBgZB+B3dDEugKsfudLGhDvf5tCNGh9VhM CATe90RHEX1+IYzaJp6aB9lMksuLi754pVtPQFPsLlPkOqjkHWjjnUwt2eRN7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=x0X3q+po; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=KOelqiqq; dmarc=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-Spam-Score: 0.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=x0X3q+po; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=KOelqiqq; dmarc=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: 397E616B02 X-Spam-Score: 0.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: bqftibiOXV0K 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 “go-github-com-google-gmail-oauth2-tools-go-sendgmail” > 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.