GoLang > Docker question... In Python, the dep...
# general
a
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
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
Amazing! thank you