brief-flag-35586
03/21/2025, 5:48 PMpython_sources(
tags=["typed"],
overrides={
"controller.py": {
"dependencies": [
":archive",
":dockerfiles",
],
},
},
)
files(
name="dockerfiles",
sources=["Dockerfile*"],
)
archive(
name="archive",
packages=["./app:cli"],
format="tar.gz",
)brief-flag-35586
03/21/2025, 5:52 PMpex_binary instead of archiveproud-dentist-22844
03/21/2025, 6:03 PMmakeself_archive--but that target requires all deps be files not *_sources or even resources (I believe archive has similar restrictions). So, this is how I made the sources available as files:
https://github.com/StackStorm/st2/blob/master/pants-plugins/macros.py#L140-L147
Then the makeself_archive depends on my :files target.brief-flag-35586
03/21/2025, 6:10 PM