aboutsummaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-03-19 12:56:49 +0100
committerLudovic Courtès <ludo@gnu.org>2024-03-19 17:02:14 +0100
commitc90a4e8dcd6ac650392ffcc039273baf145aa3cc (patch)
tree5508ad48980a4477dd4236504b63cb5bcc70470e /guix/scripts
parent06baf4d6ba187e4f56f15692b6013cf1c89df7f1 (diff)
downloadguix-c90a4e8dcd6ac650392ffcc039273baf145aa3cc.tar
guix-c90a4e8dcd6ac650392ffcc039273baf145aa3cc.tar.gz
describe: Try harder to find the ‘guix pull’ profile.
Fixes <https://issues.guix.gnu.org/66705>. The strategy used by ‘current-profile’ so far would fail to find the right profile (the one created by ‘guix pull’ or ‘guix time-machine’) in cases where said profile is itself included in another profile. This happens, for instance, when running ‘guix shell -CW -- guix describe’, which, as a result, would display nothing but the ‘guix’ channel. This patch fixes that by having ‘current-profile’ not just check for the presence of a ‘manifest’ file but also parse it to determine whether it’s a ‘guix pull’ kind of manifest. * guix/describe.scm (find-profile): New procedure. (current-profile): Adjust to use it. Change-Id: I9194f54ce1496a6591e247c76203f497f28c330b
Diffstat (limited to 'guix/scripts')
0 files changed, 0 insertions, 0 deletions