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 ms11 with LMTPS id QBySBwsV9l+qQQAA0tVLHw (envelope-from ) for ; Wed, 06 Jan 2021 19:52:43 +0000 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 WNRhAwsV9l+eSQAAB5/wlQ (envelope-from ) for ; Wed, 06 Jan 2021 19:52:43 +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 88DA594059B for ; Wed, 6 Jan 2021 19:52:42 +0000 (UTC) Received: from localhost ([::1]:51364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxErI-0007Zm-25 for larch@yhetil.org; Wed, 06 Jan 2021 14:52:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxEqZ-0007FO-7l for help-guix@gnu.org; Wed, 06 Jan 2021 14:51:56 -0500 Received: from mout02.posteo.de ([185.67.36.66]:35903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxEqT-00029S-Mu for help-guix@gnu.org; Wed, 06 Jan 2021 14:51:54 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id EBE742400FE for ; Wed, 6 Jan 2021 20:51:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1609962706; bh=eElYBYypTXBnr2PmKeVle95qYK8tv/9cCID9obHOWnA=; h=To:From:Subject:Date:From; b=gz3cKGjMlCaiXAxnEF8hQlni3QYzq/IHtNZKq7rwCEYDCypzOa41XNyrCtcptt5pS gJdtF8FHLqwuzuH7x0JYxTg79gkYaFqqoFxMroeHbunDbRwPDMIRKXX/qA3Q7i4MCj NdjOg7rxBX0vX2OeuyhnkPyXM5cw1CwKtze7zbzFV8hB3U3DKyxIxxEmLmjUJkLr+V QAsVcg/D9Yonf/KJuYvoI6L2yb3z6sQB/zgZN/vQv/ia100wkK8gC9zH00qGgVS3ez 3XfNMZGrBlkK2uvtmrl9nyyHJvmrU5Ki0h3l8Rv84JVyCigM3FBzZu+fkDzPAhvVAn I0IDINE0hUhQg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DB0PF2mYqz6tmF for ; Wed, 6 Jan 2021 20:51:45 +0100 (CET) To: help-guix@gnu.org From: Zelphir Kaltstahl Subject: Find installed library version of GNU Guix commit x Message-ID: Date: Wed, 6 Jan 2021 20:51:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.76 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=posteo.de header.s=2017 header.b=gz3cKGjM; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 88DA594059B X-Spam-Score: -1.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: xMGiGhdpHaN3 Hello Guix users! I would like to know a command line way of finding the version of a library, which I install, when I am using time-machine as follows: ~~~~ guix time-machine \ --channels="${DIR}/channels.scm" -- \ environment \ --manifest="${DIR}/manifest.scm" ~~~~ Where DIR is of course some directory in which a channels.scm and manifest.scm file are. I initially tried: ~~~~ guix time-machine --channels=/home/xiaolong/dev/guile/fantasy-vacation-planner/guix-env/channels.scm -- package -I ~~~~ But that does not give the expected output and lists versions of things not specified in the manifest file, as well as not showing the versions of the things specified in the manifest file. It apparently relates to the base profile. Then I looked at the websites: http://data.guix.gnu.org/repository/1/branch/master/package/guile-json OK here I see the library I am specifying in my manifest file. But how to know, between which 2 commits the revision (or commit id) is, which is specified in my channels file? Then I tried changing the URL: http://data.guix.gnu.org/repository/1/commit/8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee/package/guile-json Nope, this does not exist. But hey, I can click on one of the displayed links to a revision and then change that URL! http://data.guix.gnu.org/revision/f9e1baa8933ea2ed385d0272dbfbe4e22f192bde Becomes: http://data.guix.gnu.org/revision/8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee And there I found a link "View package derivations": http://data.guix.gnu.org/revision/8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee/package-derivations Perhaps those "Package derivations" are what I am looking for. So I search for guile-json in the first input field "Search query". Unfortunately now several versions come up and now I am stuck. Which version am I installing? Here are contents of my manifest and channels files: ~~~~ (specifications->manifest '("guile" "guile-json")) ~~~~ (no versions specified, as those are probably redundant, because the channel is specified with a precise commit) ~~~~ (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee") (introduction (make-channel-introduction "9edb3f66fd807b096b48283debdcddccfea34bad" (openpgp-fingerprint "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"))))) ~~~~ So I already learned today: 1. Revisions seem to be the same thing as commit ids in the version control system. Just a different name for the same thing. 2. Apparently package derivations are "the versions following from a git commit of Guix", but there can be more shown, than I expected. Can you help me Guix noob out?^^ Thank you! Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl