We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4dbbb commit e2d5dddCopy full SHA for e2d5ddd
package.py
@@ -739,9 +739,19 @@ def commands_step(path, commands):
739
else:
740
pip_requirements_step(pip_requirements, prefix,
741
required=True)
742
+
743
if path:
744
step('zip', path, prefix)
- hash(path)
745
+ if patterns:
746
+ # Take patterns into account when computing hash
747
+ pf = ZipContentFilter(args=self._args)
748
+ pf.compile(patterns)
749
750
+ for path_from_pattern in pf.filter(path, prefix):
751
+ hash(path_from_pattern)
752
+ else:
753
+ hash(path)
754
755
if patterns:
756
step('clear:filter')
757
0 commit comments