Skip to content

Commit 38d6715

Browse files
committed
fix: unify :zip path normalization
1 parent ce8417e commit 38d6715

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,9 @@ def commands_step(path, commands):
770770
_path = os.path.normpath(os.path.join(path, _path))
771771
step("zip:embedded", _path, prefix)
772772
elif len(c) == 2:
773-
prefix = None
774773
_, _path = c
774+
prefix = None
775+
_path = os.path.normpath(_path)
775776
step("zip:embedded", _path, prefix)
776777
elif len(c) == 1:
777778
prefix = None
@@ -862,6 +863,7 @@ def commands_step(path, commands):
862863
tmp_dir=claim.get("npm_tmp_dir"),
863864
)
864865
if path:
866+
path = os.path.normpath(path)
865867
step("zip", path, prefix)
866868
if patterns:
867869
# Take patterns into account when computing hash

0 commit comments

Comments
 (0)