Hello all ๐
It might be that I am working against some general concepts, so I am very open to alternatives.
My challenge:
I have a mono repository with some applications, terraform, documentation and so on.
The individual "modules" are separated by using the with_directory() function for caching/only building what changed.
Therefore I use the include_path=[] argument to express dependencies to other modules/artifacts etc..
I use just a lot for the actual actions and I use git describe for my versioning. Therefore I have to include the .git directory for most of my modules.
This leads to the issue that every time I git add/commit/ammend something, the cache is invalidated and all "modules" which include the .git folder are rebuild.
What I am looking for:
A way to include dependencies which do not invalidate the cache.
I know that this sounds controversial and one might even say that the current behavior is the correct one, since I really have a new version and I should rebuild things... But in reality only my git sha changed and nothing else.
This is especially a problem for development. During the actual CI build it is exactly what I want...
So as I said in the beginning, I am also up for alternative approaches to reach the same goal ๐
Thanks
Paul