Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nextstrain/cli/runner/conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def setup_micromamba(dry_run: bool = False, force: bool = False) -> bool:
assert content_type == "application/x-tar", \
f"unknown content-type for micromamba dist: {content_type}"

with tarfile.open(fileobj = response.raw, mode = "r|*") as tar:
with tarfile.open(fileobj = response.raw, mode = "r|*") as tar: # type: ignore
# Ignore archive members starting with "/" and or including ".." parts,
# as these can be used (maliciously or accidentally) to overwrite
# unintended files (e.g. files outside of MICROMAMBA_ROOT).
Expand Down