nx-aws
nx-aws copied to clipboard
Folder named "source" missing from the cache
A recent bug in my pipeline was causing some files to be missing from the cache. After investigating I narrowed it down to a missing folder called source
. Renaming that folder made the cache work as expected.
Investigating further I found the root cause, which was the introduction of this filter: https://github.com/bojanbass/nx-aws/blob/ee0f09a1723be9ddc73bca812aa02c00fa23e148/packages/nx-aws-cache/src/tasks-runner/aws-cache.ts#L285
I am reproducing the issue in this repo, but I may take a while to set the AWS part to make it a full reproduction. Anyway, I hope it helps to illustrate the issue.
The short-term solution was to rename the folder called source
to something else, but I wonder how could we better identify if the filtered source
is the actual file produced by NX.