[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "guix potluck", a moveable feast
From: |
Christopher Allan Webber |
Subject: |
Re: "guix potluck", a moveable feast |
Date: |
Sat, 01 Apr 2017 09:50:04 -0500 |
User-agent: |
mu4e 0.9.18; emacs 25.1.1 |
Andy Wingo writes:
> Hi!
Hi!
> potluck.guixsd.org needs to be isolated from other hosts because it will
> load potluck.scm files from untrusted sources; we hope the sandbox works
> but we need a bit of defense-in-depth.
Well now I see the motivation behind (ice-9 sandbox) ... :)
> As I mentioned, I think it would be nice to be able to install some
> potluck packages directly from git, without requiring those packages to
> make releases and update the potluck.scm. But until then, we can make
> it so that the source is fixed in the potluck.scm as it is with other
> Guix packages, and therefore that any update to potluck.scm in the
> source git branch registered with potluck.guixsd.org constitutes a new
> release which replaces the old one. A developer should signal
> potluck.guixsd.org about the update via a re-invocation of "guix potluck
> add". Maybe "guix potluck add" could remember the branch, dunno.
>
> Anyway! The result of the "guix potluck channel-manager" is a stream of
> guix modules as a continually updated git tree -- a guix channel. I am
> thinking that we need to rewrite these files to be more "normal" -- like
> starting with a (define-module), but a #:pure module and an appropriate
> set of imports to enforce the sandbox. We should be able to compile
> this module, to prevent the potluck channel from slowing things down.
> So basically the channel-manager rewrites the potluck.scm files.
It sounds nice!
One challenge though... what do we do about multiple channels
introducing version skew? (Maybe I'm abusing that term?) This isn't
something we've dealt with before in Guix... if my channel adds
something that depends on your channel's package definition, do I
explicitly set a revision for your channel? Otherwise else, your
channel could change as you upgrade your software version, and that
might unexpectedly break my channel...
- Re: "guix potluck", a moveable feast,
Christopher Allan Webber <=