From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Store channel specification in profile Date: Fri, 31 Jan 2020 13:15:06 +0100 Message-ID: <871rrfq0tx.fsf@ambrevar.xyz> References: <87blsyelgm.fsf@ambrevar.xyz> <87tv69bezo.fsf@gnu.org> <87zhg1xvmo.fsf@ambrevar.xyz> <874kx8gxh1.fsf@ambrevar.xyz> <87blreasgd.fsf@ambrevar.xyz> <87pnfpsgfx.fsf@gnu.org> <87a76rqu5j.fsf@ambrevar.xyz> <877e1vqowd.fsf@ambrevar.xyz> <87zhe4px2a.fsf@ambrevar.xyz> <87d0azq3br.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56839) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixVCd-0001Z2-1p for guix-devel@gnu.org; Fri, 31 Jan 2020 07:15:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixVCZ-0005Zf-8L for guix-devel@gnu.org; Fri, 31 Jan 2020 07:15:14 -0500 In-Reply-To: <87d0azq3br.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Konrad Hinsen , zimoun Cc: Guix Devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Pierre Neidhardt writes: > Konrad Hinsen writes: > >>> - There may be too many provenances, we need to add a CLI flag to >>> ignore provenance. >> >> Too many in what sense? >> >> I'd just print a warning if the specification refers to more than, say, >> five inferiors. Users can then clean up their profile or live with the >> mess. >> >> Cleaning up just means updating the profile. > > You mean with > > guix upgrade -p /path/to/profile? > >> That would re-create >> specifications.scm, in a better way than a special CLI flag because >> specifications.scm is always the same as the current profile. > > OK, but what about a system where you don't have the profile, only the > specification file? > > I believe we still need a flag to override the channels, basically add > -C,--channels to `guix package`. After a discussion with Zimoun, -C would break the guarantee that =3Dguix package=3D is using the current Guix, plus would overlap with =3Dguix time-machine=3D. Instead, I suggest we use a --use-default-channels boolean flag and then we could leverage guix time-machine to force a specific channel specification on a manifest: =2D-8<---------------cut here---------------start------------->8--- guix time-machine --channels=3Dfoo.scm -- package -m specs.scm --use-defaul= t-channels =2D-8<---------------cut here---------------end--------------->8--- =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl40GkoACgkQm9z0l6S7 zH+VcQf7B/kUUoud0FmwKiqZ6DYbQ6Ra/8RrRmu+g1e4pdehL4Fmyac4FTIKJ579 1rmBlDMw7ovycukwdny8ogPiDgkYya/gMrf7w+MXzxpC4s7IgKVb69cDk9ZG3n8H xzfSjwxyVozqqF2runa6C3dAAhJ+VEZFe9WH/iWL4F+G+km/e4edp0Yl6cP6K2Dz dusQZZ8Nc0AHjrjQlJeXZgMXM1ylmum2zlOdrSODqnJ5Spu4l+HN/JJpVda8SvP3 c4ZmzuP8L6IoxFAiCiSjdaMOBjFEVDfcis5wIxvC1aA0EqendqdKV3OZ7XioJVDt nn7a3GxJX/0mafxZEkdLngklJciByQ== =LxVv -----END PGP SIGNATURE----- --=-=-=--