From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KJCEIixnBl8ZCAAA0tVLHw (envelope-from ) for ; Thu, 09 Jul 2020 00:39:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mFdWHixnBl+odwAA1q6Kng (envelope-from ) for ; Thu, 09 Jul 2020 00:39:08 +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 C0C3A94071A for ; Thu, 9 Jul 2020 00:39:07 +0000 (UTC) Received: from localhost ([::1]:58838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtKaf-0002Kv-62 for larch@yhetil.org; Wed, 08 Jul 2020 20:39:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtKZe-0000x9-VY for bug-guix@gnu.org; Wed, 08 Jul 2020 20:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtKZe-00019f-Lc for bug-guix@gnu.org; Wed, 08 Jul 2020 20:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jtKZe-0007cB-IF for bug-guix@gnu.org; Wed, 08 Jul 2020 20:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42286: SWH fallback fails (git-fetch) Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 09 Jul 2020 00:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42286 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 42286@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159425502529203 (code B ref -1); Thu, 09 Jul 2020 00:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jul 2020 00:37:05 +0000 Received: from localhost ([127.0.0.1]:39456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtKYi-0007aw-S8 for submit@debbugs.gnu.org; Wed, 08 Jul 2020 20:37:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:49194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtKYh-0007ap-7y for submit@debbugs.gnu.org; Wed, 08 Jul 2020 20:37:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtKYg-0007Nt-Tr for bug-guix@gnu.org; Wed, 08 Jul 2020 20:37:02 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:44903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtKYe-00014v-Rt for bug-guix@gnu.org; Wed, 08 Jul 2020 20:37:02 -0400 Received: by mail-wr1-x42f.google.com with SMTP id b6so441291wrs.11 for ; Wed, 08 Jul 2020 17:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=sJu0UpMV7aNu3Aaiq75dRJPkMixywohKqEJHOzBqNXo=; b=deGDE44VfxxBZCevxOyuGpY1y72Sa1YWUqGQw9BOTfBqlzxtzkeqx459P46FFztR6f yrdxFg0xMVNby1TtkQI8DIsdAdy426W52Kpkbhw+hY+Zv+WQlA0BQNVSCjutnFn53ULi RkK7sZ2QF61OTdDCz0BQfE9nJf9uUyK+9jIYX0BC6IFATDhFKqMhIE0SMSM5HfVFFGJp N73WugEAm46XqwlGRQC8UZhU/iRXchqxL8y6bOpXmjG6HhNM2W//umLRFC1IWtBPks8H nP8psyFcVbLTpeBdNn0XzB7R28Hqf5KaXcusNGBlrrZJ7UY+I6XDisoEksAC/fHSEIFF bHtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=sJu0UpMV7aNu3Aaiq75dRJPkMixywohKqEJHOzBqNXo=; b=OL6R/ESSa0ss2CRbceFEKCeIiMqbrxy42FhhE6uanYnRH36nIqybUOOy8rKV/DSQHM LBLK82kI26F6y+bvvcTT/4aKaf4Ao4QXpy7b9cCQdt53LLoxKQj7N1dsCfXv1FxBPcdH 5XQmMQyC+UMMHl06ifGJK45tXH5trEV6HBgxNnzihDllQx9PtP46kvYUKBDXaf3Uvp5u SJKNR9PT6Cy6W2H9pP3Fh+fnbjQsQP9XsvYSjEHgXKaluZodu9zXNeoCD2JooIC/4yie T7G/q/y/JPIgJjJ+WtW91Hm1cS+icm4GuQwThXE3/zdCSDfCVGPmITfav0T+yge51Qdg I0Bw== X-Gm-Message-State: AOAM530AjxMOGSKmMHP2vt9cXwz4WMoVnHlsvtE4ND+tT5Zv93xQmez6 tu1cwyQZWsXwdB66GEhNSb4pBLocazM= X-Google-Smtp-Source: ABdhPJyR5wSioW1IM0cJW498T7diY7xvm7VSJD7IIBOgf2MVUT75jStdtBqHZ8dcw0w/PbvwrKeYlw== X-Received: by 2002:adf:df10:: with SMTP id y16mr61309628wrl.225.1594255018245; Wed, 08 Jul 2020 17:36:58 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id m10sm2659789wru.4.2020.07.08.17.36.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 17:36:57 -0700 (PDT) From: zimoun Date: Thu, 09 Jul 2020 02:36:55 +0200 Message-ID: <86imexcymw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_FROM=0.001, PDS_BTC_ID=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.2 (++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.8 (/) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=deGDE44V; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: vmgotL9/Bcy4 Dear, I think the fallback with SWH is broken. Here an example to reproduce. --8<---------------cut here---------------start------------->8--- cd /tmp/ tar -xvf $(guix build -S hello) cd hello-2.10 git init git add * git commit -m 'init' --8<---------------cut here---------------end--------------->8--- Then I push this fresh repo to my own GitHub account. Because it is easy to switch between public and private state option, which mimics upstream loss. Let create the well-known "hello" recipe, which is simply a copy/paste of (gnu packages base). --8<---------------cut here---------------start------------->8--- (define-module (hello) #:use-module (guix packages) #:use-module (guix build-system gnu) #:use-module (guix git-download) #:use-module (guix licenses)) (define-public hi (package (name "hi") (version "2.10") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/zimoun/hello-example.git") (commit "e1eefd033b8a2c4c81babc6fde08ebb116c6abb8"))) (sha256 (base32 "1im1gglfm4k10bh4mdaqzmx3lm3kivnsmxrvl6vyvmfqqzljq75l")))) (build-system gnu-build-system) (synopsis "Hello, GNU world: An example GNU package") (description "GNU Hello prints the message \"Hello, world!\" and then exits. It serves as an example of standard GNU coding practices. As such, it supports command-line arguments, multiple languages, and so on.") (home-page "https://www.gnu.org/software/hello/") (license gpl3+))) --8<---------------cut here---------------end--------------->8--- For the sanity of the test, "guix build -L . hi" builds correctly and returns the item: /gnu/store/jn8d031zx4znxy7s5zhj4dbr6xjsfq9v-hi-2.10 with Guix b7249aa. The upstream source is archived on SWH with: guix lint -L . hi -c archival see https://archive.softwareheritage.org/browse/origin/directory/?origin_url=https://github.com/zimoun/hello-example.git and the logs in https://archive.softwareheritage.org/save/#requests Note that running again "lint -c archival" returns nothing, which means that the linter finds it on SWH, I guess. Well, I have not checked what 'lookup-content' returns yet. However, I filtered the first ~2000+ 'packages-with-sources' with 'lookup-content' and all the 'git-fetch' sources are returned #f, and some 'url-fetch' not. Another story, another thread. :-) Let clean the previous builds and downloads: guix gc -D $(guix gc --list-dead | grep -E '(hi-2|git-checkout)') And now let turn off upstream and so the maybe bug: --8<---------------cut here---------------start------------->8--- guix build -L . hi The following derivations will be built: /gnu/store/x5vwhv8sn3l49vysq98j7h2rqqlff5zp-hi-2.10.drv /gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv building /gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv... guile: warning: failed to install locale environment variable `PATH' set to `/gnu/store/378zjf2kgajcfd7mfr98jn5xyc5wa3qv-gzip-1.10/bin:/gnu/store/sf3rbvb6iqcphgm1afbplcs72hsywg25-tar-1.32/bin' Initialized empty Git repository in /gnu/store/884nsva9r8wkp40kbqyvpj1ad57jc5dd-git-checkout/.git/ fatal: could not read Username for 'https://github.com': No such device or address Failed to do a shallow fetch; retrying a full fetch... fatal: could not read Username for 'https://github.com': No such device or address git-fetch: '/gnu/store/i2pkspl2vjvas0q85hw46y2li06rcmcg-git-minimal-2.26.2/bin/git fetch origin' failed with exit code 128 Trying content-addressed mirror at berlin.guixsd.org... Trying content-addressed mirror at berlin.guixsd.org... Trying to download from Software Heritage... Backtrace: 4 (primitive-load "/gnu/store/s56y8npabah6jc1bqrhsac6wqb1?") In ./guix/swh.scm: 573:13 3 (swh-download "https://github.com/zimoun/hello-example?" ?) 224:22 2 (call "https://archive.softwareheritage.org/api/1/revi?" ?) In web/client.scm: 563:0 1 (http-get "https://archive.softwareheritage.org/api/1/?" ?) 231:6 0 (tls-wrap # _ # _) web/client.scm:231:6: In procedure tls-wrap: Error while printing exception. builder for `/gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv' failed with exit code 1 build of /gnu/store/jn6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv failed View build log at '/var/log/guix/drvs/jn/6f86hg9zyyhms1vn56hviv4m9yjm8j-git-checkout.drv.bz2'. cannot build derivation `/gnu/store/x5vwhv8sn3l49vysq98j7h2rqqlff5zp-hi-2.10.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/x5vwhv8sn3l49vysq98j7h2rqqlff5zp-hi-2.10.drv' failed --8<---------------cut here---------------end--------------->8--- Let me know if moreinfo are required. All the best, simon