XGQT's blog: Posts tagged 'prototype'urn:https-xgqt-gitlab-io:-blog-tags-prototype-html2022-12-30T00:00:00Zsrc_snapshoturn:https-xgqt-gitlab-io:-blog-posts-2022-12-30-src-snapshot2022-12-30T00:00:00Z2022-12-30T00:00:00ZMaciej Barć
<h1 id="prototype">Prototype</h1>
<p>Recently while browsing the Alpine git repo I noticed they have a function called <code>snapshot</code>, see: <a href="https://git.alpinelinux.org/aports/tree/testing/dart/APKBUILD#n45">https://git.alpinelinux.org/aports/tree/testing/dart/APKBUILD#n45</a> I am not 100% sure about how that works but a wild guess is that the developers can run that function to fetch the sources and maybe later upload them to the Alpine repo or some sort of (cloud?) storage.</p>
<p>In Portage there exists a <code>pkg_config</code> function used to run miscellaneous configuration for packages. The only major difference between <code>src_snapshot</code> and that would of course be that users would never run <code>snapshot</code>.</p>
<h2 id="sandbox">Sandbox</h2>
<p>Probably only the <code>network sandbox</code> would have to be lifted out… to fetch the sources of course.</p>
<p>But also a few (at least one?) special directories and variables would be useful.</p>