https://pantsbuild.org/ logo
#general
Title
# general
a

aloof-appointment-30987

12/06/2022, 6:25 PM
GoLang > Docker question... In Python, the dependency tree is automatically tracked when a Dockerfile references a pants artifacts such as:
Copy code
FROM python:3.8
ENTRYPOINT ["/example_app"]
COPY apps.python.example_app/example_app_bin.pex /example_app
Are Go build artifacts tracked in the same way? Any examples or documentation to point me to?
1
b

bitter-ability-32190

12/06/2022, 6:26 PM
IIRC anything that has an "output_path" is automatically inferred by the Docker rules
So, by that logic, a
go_binary
should be auto-inferrable because it has one as well: https://www.pantsbuild.org/docs/reference-go_binary
a

aloof-appointment-30987

12/06/2022, 7:35 PM
Amazing! thank you
5 Views