unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: myglc2 <myglc2@gmail.com>
To: Christopher Allan Webber <cwebber@dustycloud.org>
Cc: guix-devel@gnu.org
Subject: Re: "your installation is old" when running via a git checkout
Date: Mon, 29 May 2017 17:53:51 -0400	[thread overview]
Message-ID: <8637bntjm8.fsf@gmail.com> (raw)
In-Reply-To: <87a85vwuz9.fsf@dustycloud.org> (Christopher Allan Webber's message of "Mon, 29 May 2017 10:20:10 -0500")

On 05/29/2017 at 10:20 Christopher Allan Webber writes:

> Hi!  I've done this hack so I can run the Guix I'm hacking on from git
> as I know some others are as well:
>
>   ln -s ~/devel/guix ~/.config/guix/latest
>
> However, I am getting:
>
>   guix package: warning: Your Guix installation is 233 days old
>
> It looks like it's looking at the age of the "latest" directory, which
> wouldn't be useful information since I've symlinked it intentionally.
>
> I wonder if there's a way to turn this off for people who have
> intentionally symlinked guix to their git checkout?

AIUI, the warning is based on the date of the ~/.config/guix/latest link
but FWIW I just refresh the links like this periodically ...

ln -f -s -T ~/src/guix/ ~/.config/guix/latest
sudo ln -f -s -T ~/src/guix/ /root/.config/guix/latest

HTH - George

Note: GUIX_DISTRO_AGE_WARNING as described below was implemented by
commit 7fd952e05203d975fcb6cdabd2f742ade1b31b66

*** From: ludo@gnu.org (Ludovic Courtès) Subject: bug#25852: Users not
updating their installations of Guix To: Ricardo Wurmus
<rekado@elephly.net> Cc: 25852-done@debbugs.gnu.org, myglc2
<myglc2@gmail.com> Date: Fri, 12 May 2017 10:29:12 +0200 (2 weeks, 3
days, 13 hours ago) Resent-From: ludo@gnu.org (Ludovic Courtès)

Ricardo Wurmus <rekado@elephly.net> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> myglc2 <myglc2@gmail.com> skribis:
>>
>>> How about extending this ...
>>>
>>>> +      (warning (G_ "Your Guix installation is getting old.  Consider
>>>> +running 'guix pull' followed by '~a' to get up-to-date
>>>> +packages and security updates.\n")
>>>
>>> ... to inform the user how old the installation is?
>>
>> Good idea.  I did that and pushed as
>> 7fd952e05203d975fcb6cdabd2f742ade1b31b66.
>
> Does this do the right thing when .config/guix/latest points at a git
> checkout?

No it doesn’t, but I would argue that it unsupported.  ;-)

> The mtime of the “.config/guix/latest” link on one of my machines is
> from 2016, so Guix says it is too old, but it points to a git
> checkout, which is recent.

I would suggest:

  export GUIX_DISTRO_AGE_WARNING=1000m

as a workaround.  WDYT?

Thanks,
Ludo’.

      reply	other threads:[~2017-05-29 21:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-29 15:20 "your installation is old" when running via a git checkout Christopher Allan Webber
2017-05-29 21:53 ` myglc2 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8637bntjm8.fsf@gmail.com \
    --to=myglc2@gmail.com \
    --cc=cwebber@dustycloud.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).