proud-dentist-22844
02/24/2023, 7:53 PM> If one user wants to run tests locally and another wants to run tests in docker, the design doesn’t account for that yet (afaict).
it allows for a Linux user to skip using Docker to build a target, while a macOS user does use Docker… that’s not quite the same thing, but possibly close enough?
i’m curious about the “individual choice of which environment to run things in” use cases, because the way i’ve been thinking about it is that someone defining the target essentially wants to say: “this needs to run on a Linux with these properties”, rather than that necessarily being a consumer’s choiceEven more narrow than that. Given two users, both on linux: One user wants to run everything via docker as they have a very slim host for the development box, and the other user (typically me) wants everything to run locally (as my development machine has many interpreters and other programs installed globally - so I don’t want the overhead of docker). Is that possible with Environments today?
witty-crayon-22786
02/24/2023, 7:56 PMwitty-crayon-22786
02/24/2023, 7:57 PMdocker_environment(.., fallback_to="local_linux")
witty-crayon-22786
02/24/2023, 7:57 PMproud-dentist-22844
02/24/2023, 7:59 PMwitty-crayon-22786
02/24/2023, 7:59 PMwitty-crayon-22786
02/24/2023, 8:00 PMproud-dentist-22844
02/24/2023, 8:00 PMwitty-crayon-22786
02/24/2023, 8:00 PMwitty-crayon-22786
02/24/2023, 8:02 PMproud-dentist-22844
02/24/2023, 8:02 PMproud-dentist-22844
02/24/2023, 8:03 PMfast-nail-55400
02/24/2023, 8:04 PMwitty-crayon-22786
02/24/2023, 8:06 PMproud-dentist-22844
02/24/2023, 8:07 PMproud-dentist-22844
02/24/2023, 8:08 PMbusy-vase-39202
02/24/2023, 8:09 PMproud-dentist-22844
02/24/2023, 8:09 PMbusy-vase-39202
02/24/2023, 8:09 PMwitty-crayon-22786
02/24/2023, 10:37 PMproud-dentist-22844
02/25/2023, 12:49 AMproud-dentist-22844
02/25/2023, 1:21 AMproud-dentist-22844
02/25/2023, 4:38 AM*_environment
target fields (all of name
, platform
, compatible_platforms
) and the environment
field of other targets?
Looking at this sample in the 2.15 blog , I see environments with name="macos"
and name="local_busybox"
, and then another target with environment=parametrize("linux", "macos")
- is there another environment named “linux”? Or does it look at the platform to know that if something needs environment=linux
then it should use the docker_environment(name="local_busybox", platform="linux_x86_64")
?
I’m really struggling to wrap my mind around environments. It feels like I understand and then I read a bit more and I feel confused again.fast-nail-55400
02/25/2023, 6:34 AMpants.toml
.proud-dentist-22844
02/26/2023, 3:38 AMbusy-vase-39202
02/27/2023, 2:44 PM