fix(tvix/build): fix build on MacOS

oci_spec::runtime::Posix* stuff is feature-flagged out on MacOS.

While it might be desirable to emit Linux OCI runtime specs from MacOS to
schedule there, and it being feature-flagged to Linux might be a bug in the
upstream crate, we only have an implementation invoking runc, which certainly
don't work.

Feature-flag this out to make tvix-build and tvix-cli to build on MacOS. This
can be revisited once we actually start thinking about builders on MacOS.

Change-Id: I82002f6d55eddd9c305f1b3a3f3f2b252f617ed0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12694
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
This commit is contained in:
Florian Klink 2024-10-27 14:00:28 +01:00 committed by clbot
parent e79815dda9
commit e9d1e7d7fa

View file

@ -1,3 +1,4 @@
pub mod buildservice;
#[cfg(target_os = "linux")]
mod oci;
pub mod proto;