Did any platforms support conversations already ha...
# general
j
Did any platforms support conversations already happened?
BUILD
Copy code
go_binary(
    name = "bin",
)

docker_image(
    name = "image",
    dependencies = [":bin"],
)
Dockerfile
Copy code
FROM alpine:3.11
ENTRYPOINT ["/bin/greeter_en"]
COPY cmd.greeter_en/bin /bin/greeter_en
on MacOS the image will have MacOS binary
h
Hello! Platform support for Go binaries, right? That has not happened yet, but very interested in supporting it! I see how useful it would be
j
I understand this is a big and hairy topic to get into. I'm really wish the Bazel' solution to this problem is not repeated in pants 🙂
It is not only Go problem, tough. Coping Python packages with native dependencies into container ( hello
numpy
) will have the same issue too.
h
We support platforms for PEX binaries already! https://www.pantsbuild.org/docs/reference-pex_binary#codeplatformscode I know several users are relying on that mechanism and it's worked quite well, although does often require prebuilding wheels for dependencies Re: Go, would you be interested in opening a feature request at https://github.com/pantsbuild/pants/issues/new/choose? That helps us to prioritize. If you have any thoughts about how you'd like platforms to work for
go_binary
, that'd be really helpful to include - even if it's only pointing out the parts you don't like about Go's support
j
I've missed the
platform
attribute for
pex_binary
. Thank you for pointing it out. I'll open an issue.
❤️ 3