aws
aws copied to clipboard
The CodeGenerator cache does not handle changes for patches properly
Changing patches in the manifest does not invalidate the cache of the code generator, while the cache contains the patched files, not the raw downloaded files. This makes it painful to work with patches as it requires clearing the cache manually.
I think the best solution here would be to cache the unpatched file, as the goal of the cache is to cache the network activity.
Most services don't have any patch, so this won't change anything for them. And it will be simpler than having to hash the patches in the cache key.