hundreds-father-404
08/25/2022, 10:52 PMplatform
has enough information for local environment auto-detection? We only track OS family and arch, but not OS version for example.witty-crayon-22786
08/25/2022, 10:53 PMhundreds-father-404
08/25/2022, 10:53 PMwitty-crayon-22786
08/25/2022, 10:53 PMhundreds-father-404
08/25/2022, 10:54 PMmacos_x86_64
as a catchall for macos_11.1_x86_64
and siblingswitty-crayon-22786
08/25/2022, 10:54 PMwitty-crayon-22786
08/25/2022, 10:55 PMfast-nail-55400
08/25/2022, 10:58 PMfast-nail-55400
08/25/2022, 10:59 PMwitty-crayon-22786
08/25/2022, 10:59 PMfast-nail-55400
08/25/2022, 11:00 PMwitty-crayon-22786
08/25/2022, 11:00 PMhundreds-father-404
08/25/2022, 11:00 PMwitty-crayon-22786
08/25/2022, 11:00 PMfast-nail-55400
08/25/2022, 11:05 PMfast-nail-55400
08/25/2022, 11:06 PMwitty-crayon-22786
08/25/2022, 11:06 PMhundreds-father-404
08/25/2022, 11:07 PMvendor
, right? What seems missing here is OS version number, for example, which triplets don't expresswitty-crayon-22786
08/25/2022, 11:07 PMfast-nail-55400
08/25/2022, 11:15 PMwitty-crayon-22786
08/25/2022, 11:16 PMwitty-crayon-22786
08/25/2022, 11:17 PMfast-nail-55400
08/25/2022, 11:17 PMwitty-crayon-22786
08/25/2022, 11:17 PMfast-nail-55400
08/25/2022, 11:18 PMhundreds-father-404
08/25/2022, 11:18 PMthe Environment itself will do thatHow so? Specifically what I'm envisioning is
local_environment(comaptible_platforms=["macos_arm64"])
. Then Pants uses that to auto-detect which local_environment
to use
Although we may want to give an option that people can set in .pants.rc
to force a certain local_environment
fast-nail-55400
08/25/2022, 11:18 PMfast-nail-55400
08/25/2022, 11:19 PMfast-nail-55400
08/25/2022, 11:19 PMfast-nail-55400
08/25/2022, 11:19 PMwitty-crayon-22786
08/25/2022, 11:20 PMhundreds-father-404
08/25/2022, 11:20 PMenvironment="my_docker_image"
. We rely on remote execution and/or Docker to do cross-platform stuffwitty-crayon-22786
08/25/2022, 11:20 PMwitty-crayon-22786
08/25/2022, 11:22 PMwitty-crayon-22786
08/25/2022, 11:24 PMwitty-crayon-22786
08/25/2022, 11:25 PMwitty-crayon-22786
08/25/2022, 11:36 PMcc_binary
, for example)hundreds-father-404
08/25/2022, 11:37 PMlocal_environment
😄witty-crayon-22786
08/25/2022, 11:38 PMwitty-crayon-22786
08/25/2022, 11:38 PMhundreds-father-404
08/25/2022, 11:38 PMhundreds-father-404
08/25/2022, 11:39 PMwhatever you think you can keep in your head without getting overwhelmed.with the key split of
local_environment
vs docker_environment
, it's now easy to keep in my head 🙂witty-crayon-22786
08/25/2022, 11:39 PM