From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id ABUnLdECXWVAQwEAG6o9tA:P1 (envelope-from ) for ; Tue, 21 Nov 2023 20:19:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ABUnLdECXWVAQwEAG6o9tA (envelope-from ) for ; Tue, 21 Nov 2023 20:19:45 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9E7471771D for ; Tue, 21 Nov 2023 20:19:44 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=cworth.org header.s=mail header.b=Zge8w96n; dkim=fail ("body hash did not verify") header.d=cworth.org header.s=mail header.b=q641li8I; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700594385; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SomMWZI+cZs+QUYUS6ja/tm3K662GyKZQSOf7gEyxjc=; b=Xthwxd9kZIbxajL9beBpaSt3MzcMHWn2UHotP0JWAH1kf5xS+YOvSvqhQiTpBOdC8JQirn c7oRNuKIzh9KWgB2KQlUuwp1vKaUbIbWsupcutJBMB6kGYXHoaWO0xYlUVQzyiCEjaIZhz wTx5q7/bkLgmTZ8uLVxM4nWcJhbODtzoxbq2hRf3bP8EsXTWL8kNwCWVcmbv2X/DTZ2S6N SRLOQJgy0BlXMiaZmtS2FMSgKd5Uv6O1TArKaAxgd0cx4BOE6KkP/Pa9TLUBcubaASfFE9 0sZbNk2GWDyUe9KZTFwF0YVe2nLr93lHLVOaMPnP1KAODEv/GuiloJH32ypaVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=cworth.org header.s=mail header.b=Zge8w96n; dkim=fail ("body hash did not verify") header.d=cworth.org header.s=mail header.b=q641li8I; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700594385; a=rsa-sha256; cv=none; b=jqFFS1SIJCvIaGY3PhuCkQHWh1c19++zRoBNIoi+n7XKkqqB0lU3Cp2MRXefT/+YHZQYxz 3wzlgnjtFZW6bm2r6orf3SpChGcV4LU6B3quSVjNlq+FkRFP12IPWjPHel/DLIouwaFrPi lFIySOvWgcy63XXKrTtU++jbrJspWlNRPUbx/PmzadEprA+7TCWZ5oWQf0osdMmFZWrI1a 7QvUquU7kqU1pu2xyoJSt9w9cCvoswMEvNJPfISzLTVZP8juJ3kl2MkdjNIuwL6yK0YG72 kGmdD6mPBd6fHU8IHp8jZ/kvUwFY7l3Q95CE0CnRmCedQAvynTW9N1iyLsoOZQ== Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3F28D5F727; Tue, 21 Nov 2023 19:19:36 +0000 (UTC) Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) by mail.notmuchmail.org (Postfix) with ESMTPS id 70FCB5E017 for ; Tue, 21 Nov 2023 19:19:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cworth.org; s=mail; t=1700594371; bh=Lah8HHXrob+21c1oKXeEIzJKu7F7uyKKOELh2hXwoC4=; h=To:Subject:In-Reply-To:References:From:Date:From; b=Zge8w96nF+SJnxUiWszSYS44yWIvEg/2G9DyfhW5aM5DcedHtXZK1/gsHajUBelYY wLQ+n6Vw2vz3RvkynjC0XOkVD15KRsRbtyorVAjQNZ//c4bECM/I0i11kSPEt1AX/N Jyh8VyCFLcTtNu1/XlznNfY5xd4yAv+xj3a9Jehc4JpzkUinVn21v4fu/IaC3hcwWZ W3Nv32w6M101sYNfXsCkxK0J7UrRjpXeEmbxmrV6GvBJnzf8lWbZ/iOWDw+N+SV9Lo G56VRkqXPtPH+ksUWEL+reHrHEzUCHbo0AG+9xRhcVP2R0Yb8URR+lsif8bQh8I1tL 8B1ORGmkLoO6g== Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 9DC756DE01E9; Tue, 21 Nov 2023 11:19:31 -0800 (PST) X-Virus-Scanned: Debian amavis at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavis, port 10024) with ESMTP id A0Z5mU18WkQz; Tue, 21 Nov 2023 11:19:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cworth.org; s=mail; t=1700594370; bh=Lah8HHXrob+21c1oKXeEIzJKu7F7uyKKOELh2hXwoC4=; h=To:Subject:In-Reply-To:References:From:Date:From; b=q641li8I+IfB93O0VIp8c80ChUSSKYIDpZXac4/O20ujrqvmCcKEo8syj1UiYdkv7 4k5+IZAmk0eWMWIsq8NtHd5UUy3zsqiA4ToJ4dqRMWhbZ7FXZudC8WJN71HbtzqeBD z4KvIL5sxxOJpoVFy0HPLF/2Ld8E4KPG7JzT5x9fMmGoZi4E2AKpSRuGkvsejdY9Fq ZV2mPG2SV6tejEPmoyPu0619f1RSed7gBf+6PSMdvhEZvWk0LnDV579Uw41IQe++WS j0etdid91/yp2wxuKMRNYHCltP5iZj/SguvQ63bXZ37PAKsYbRDD7afEAPbeUdjDAv w71caZd0OxDHA== Received: from wondoo.home.cworth.org (unknown [10.0.0.230]) (Authenticated sender: cworth) by arlo.cworth.org (Postfix) with ESMTPSA id AB7286DE00ED; Tue, 21 Nov 2023 11:19:30 -0800 (PST) Received: from wondoo (localhost [IPv6:::1]) by wondoo.home.cworth.org (Postfix) with ESMTPS id 8AA181FE00BE; Tue, 21 Nov 2023 11:19:30 -0800 (PST) To: Peter Lawrence , notmuch@notmuchmail.org Subject: Re: macOS and go language bindings In-Reply-To: References: Sender: cworth@cworth.org From: Carl Worth Date: Tue, 21 Nov 2023 11:19:30 -0800 Message-ID: <87il5uud6l.fsf@wondoo.home.cworth.org> MIME-Version: 1.0 Message-ID-Hash: NO3E53PPULK7ZE66W7CYXDO7SLWVI2R2 X-Message-ID-Hash: NO3E53PPULK7ZE66W7CYXDO7SLWVI2R2 X-MailFrom: cworth@cworth.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE X-Migadu-Spam-Score: 1.21 X-Spam-Score: 1.21 X-Migadu-Queue-Id: 9E7471771D X-Migadu-Scanner: mx13.migadu.com X-TUID: 0TnTHn/PlLLf On Sun, Nov 19 2023, Peter Lawrence wrote: > Hi. Hi Peter! > I'm trying to build an email client (aerc) with support for notmuch > on macOS. aerc is written in go. I can't find an aerc package for brew > which includes notmuch headers/library files. Where can I get these > language bindings and how do I "install" them, or where do I place them > in the aerc source directory to get the notmuch library built and then > accessible to aerc? I don't have much direct experience with either macOS nor the Go language bindings to notmuch, but I'll see how far I can get in answering your questions. The Go bindings for notmuch are in the contrib/go directory of the source distribution which you can get from the latest source release https://notmuchmail.org/releases/notmuch-0.38.tar.xz Or via git: git clone https://git.notmuchmail.org/git/notmuch There's a brief README and a Makefile in the contrib/go directory, but I'm not exactly clear on how things are supposed to work. When I type "make" the first command it runs is "go install notmuch" which fails as follows: $ go install notmuch go: 'go install' requires a version when current directory is not in a module Try 'go install notmuch@latest' to install the latest version The advice from the error message doesn't help much: $ go install notmuch@latest go: notmuch@latest: malformed module path "notmuch": missing dot in first path element I'm guessing someone who knows even a tiny bit about go modules might be able to explain what's needed here, so we can fix the Makefile to actually work? -Carl