how does pants determine platform compatibility? ...
# general
a
how does pants determine platform compatibility? if BUILD contains
local_environment(compatible_platforms=["linux_x86_64"])
, what is pants checking to determine if the current platform is linux_x86_64 v. macos_x86_64 v. linux_arm64 etc? I would suspect it's checking output of
uname -a
or
/etc/os-release
or something similar.
h
That happens here, which in turn uses
Platform.create_for_localhost()
, which eventually uses
os.uname().{machine,sysname}