Skip to content

Commit

Permalink
fix: unify :zip path normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
ahlinc committed Nov 18, 2024
1 parent ce8417e commit 38d6715
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,9 @@ def commands_step(path, commands):
_path = os.path.normpath(os.path.join(path, _path))
step("zip:embedded", _path, prefix)
elif len(c) == 2:
prefix = None
_, _path = c
prefix = None
_path = os.path.normpath(_path)
step("zip:embedded", _path, prefix)
elif len(c) == 1:
prefix = None
Expand Down Expand Up @@ -862,6 +863,7 @@ def commands_step(path, commands):
tmp_dir=claim.get("npm_tmp_dir"),
)
if path:
path = os.path.normpath(path)
step("zip", path, prefix)
if patterns:
# Take patterns into account when computing hash
Expand Down

0 comments on commit 38d6715

Please sign in to comment.