feat(sbx): apt-get update on docker launch so installs just work
CI / rust client (hh) (macos-latest) (push) Waiting to run
CI / rust client (hh) (ubuntu-latest) (push) Waiting to run
CI / rust coverage (push) Waiting to run
CI / python server (3.10) (push) Waiting to run
CI / python server (3.11) (push) Waiting to run
CI / python server (3.12) (push) Waiting to run
CI / headless e2e smoke (push) Waiting to run
CI / dependency audit (push) Waiting to run
CI / secret scanning (push) Waiting to run
CI / rust client (hh) (macos-latest) (push) Waiting to run
CI / rust client (hh) (ubuntu-latest) (push) Waiting to run
CI / rust coverage (push) Waiting to run
CI / python server (3.10) (push) Waiting to run
CI / python server (3.11) (push) Waiting to run
CI / python server (3.12) (push) Waiting to run
CI / headless e2e smoke (push) Waiting to run
CI / dependency audit (push) Waiting to run
CI / secret scanning (push) Waiting to run
Base ubuntu images ship without /var/lib/apt/lists, so apt-get install failed with "Unable to locate package" until the user ran update by hand. Refresh the index once during Docker provisioning. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -762,6 +762,10 @@ pub fn provision(backend: Backend, name: &str, owner: &str, members: &[String])
|
|||||||
run
|
run
|
||||||
}
|
}
|
||||||
Backend::Docker => {
|
Backend::Docker => {
|
||||||
|
// Refresh the apt index once so `apt-get install <pkg>` just works —
|
||||||
|
// base images ship without /var/lib/apt/lists, so installs otherwise
|
||||||
|
// fail with "Unable to locate package" until the user runs update.
|
||||||
|
dk(name, &["apt-get", "update"]);
|
||||||
for m in members {
|
for m in members {
|
||||||
let u = unix_name(m);
|
let u = unix_name(m);
|
||||||
if !u.is_empty() {
|
if !u.is_empty() {
|
||||||
|
|||||||
Reference in New Issue
Block a user