Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ Unreleased changes template.

{#v0-0-0-fixed}
### Fixed
* Nothing fixed.
* Do not try to run `chmod` when downloading non-windows hermetic toolchain
repositories on Windows. Fixes
[#2660](https://github.com/bazel-contrib/rules_python/issues/2660).

{#v0-0-0-added}
### Added
Expand Down
4 changes: 3 additions & 1 deletion python/private/python_repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ def _python_repository_impl(rctx):
# pycs being generated at runtime:
# * The pycs are not deterministic (they contain timestamps)
# * Multiple processes trying to write the same pycs can result in errors.
if "windows" not in platform:
#
# Note, when on Windows the `chmod` may not work
if "windows" not in platform and "windows" != repo_utils.get_platforms_os_name(rctx):
repo_utils.execute_checked(
rctx,
op = "python_repository.MakeReadOnly",
Expand Down