rust-lang / rustwide

Execute your code on the Rust ecosystem.
Apache License 2.0
182 stars 41 forks source link

add SandboxBuilder image override #50

Open devsnek opened 3 years ago

devsnek commented 3 years ago

https://github.com/rust-lang/docs.rs/pull/1193

devsnek commented 3 years ago

cc @pietroalbini

If this needs tests, where should they go?

pietroalbini commented 3 years ago

Regarding tests, I'd add a tests/integration/sandbox_images.rs test that sets the workspace sandbox image to ubuntu:latest, tries to run cat /etc/os-release to ensure it's Ubuntu, then runs a command with debian:latest checking it's Debian instead.