I have a target with `pex_binary(...environment="l...
# general
s
I have a target with
pex_binary(...environment="linux"...)
that gets copied into a
docker_image
. Things work if I set
Copy code
[environments-preview.names]
linux = "//:linux"
but if I add
Copy code
[environments-preview.names]
local = "//:local"
linux = "//:linux"
I run into issues like
The wheel tags for SQLAlchemy 1.4.27 are cp310-cp310-manylinux1_x86_64, cp310-cp310-manylinux_2_5_x86_64
. Why does adding another name to "environments-preview" override
environment="linux"
in the pex target? Another question, if I set
environment=parametrize("local", "linux")
and
foobar:cli@environment=linux
as a docker dependency, how should I reference it in the Dockerfile? I get
failed to compute cache key: "/foobar/cli.pex" not found: not found
. There's nothing in https://www.pantsbuild.org/docs/docker#docker-configuration that references environments I'm running pants v2.16
After packaging the cli specifically I was able to get the name
foobar/cli@environment=linux.pex
Still not sure why I see
The wheel tags for SQLAlchemy 1.4.27 are cp310-cp310-manylinux_2_5_x86_64, cp310-cp310-manylinux_2_17_x86_64, cp310-cp310-manylinux2014_x86_64, cp310-cp310-manylinux1_x86_64 which do not match the supported tags of /usr/local/bin/python3.10: