3 ms·
https://github.com/docker-slim/docker-slim/blob/master/internal/app/sensor/artifacts.go#L570 https://github.com/docker-slim/docker-slim/blob/master/inter...
by kortex 7y ago
https://github.com/docker-slim/docker-slim/blob/master/internal/app/sensor/artifacts.go#L570 https://github.com/docker-slim/docker-slim/blob/master/inter...
func fixPy3CacheFile(src, dst string) error {
...}
Yeahhh, that is your classic example of "things you definitely DO want an explanation comment for"
- kylequest 7y agoDifferent application runtimes have interesting hidden behaviors. With Python, for example, the runtime will generate cache files from your .py files and then it'll use it instead of those .py file. However, it still checks if the original source code is still there. If it's not there the runtime will refuse to use the cache files.