1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-08 14:55:35 +00:00
krust/tests/testdata/platform_override.txt
Jason Hall e47442d04d successfully pushed to GAR
Signed-off-by: Jason Hall <jason@chainguard.dev>
2025-10-15 11:58:05 -04:00

20 lines
506 B
Text

# Test that explicit platform overrides base image detection
-- Cargo.toml --
[package]
name = "test-app"
version = "0.1.0"
edition = "2021"
[dependencies]
-- src/main.rs --
fn main() {
println!("Hello, world!");
}
# When platform is explicit, no detection should happen
env RUST_LOG=info
[linux] exec ./krust build --no-push --platform linux/amd64 .
[darwin] exec ./krust build --no-push --platform linux/amd64 .
! stderr 'Detecting available platforms'
stderr 'Building for platform: linux/amd64'