brick icon indicating copy to clipboard operation
brick copied to clipboard

Changing only environment variable doesn't invalidate build

Open corradio opened this issue 5 years ago • 0 comments

The caching mechanism checks for file inputs, and might abort a docker build if the inputs haven't changed. However, other informations might invalidate the build, such as e.g. an environment variable. The dependency hash should therefore include all information (and not only paths): https://github.com/tmrowco/brick/blob/master/brick/dockerlib.py#L54-L79

corradio avatar Jan 03 '21 17:01 corradio