creamy-branch-34921
01/01/2025, 9:12 PMdocker_image(
name="book-creator",
source="Dockerfile",
dependencies=[
"src/services/utils:util_files",
":service_files",
"//:root",
"//:git"
]
)
but this does not copy the .git folderelegant-florist-94385
01/02/2025, 11:09 AMpants list ./.git/:: and I expect it will be empty.
Change your sources field to sources=["./.git/**/*"] and try the pants list command again.
If its still empty, then this may be due to .gitignore by default, pants ignores files that are .gitignored. One of the settings to change this is https://www.pantsbuild.org/prerelease/reference/global-options#pants_ignore_use_gitignorehappy-kitchen-89482
01/02/2025, 9:00 PMcreamy-branch-34921
01/06/2025, 8:19 AM.git folder into my docker build stage? Because i need that for building the imagehappy-kitchen-89482
01/06/2025, 2:22 PM.git state inside a containerhappy-kitchen-89482
01/06/2025, 2:23 PMuse_gitignorehappy-kitchen-89482
01/06/2025, 2:23 PM