Skip to content

invalid escape sequence on windows #3224

@honglooker

Description

@honglooker

🐞 bug report

Affected Rule

local python toolchain: +_repo_rules+local_python3

Is this a regression?

We did not hit this in 1.4.2.

Description

I cannot upgrade Protobuf to 1.5.4 due to this issue. Looks like Windows CI is failing when I try to upgrade.

🔬 Minimal Reproduction

@rickeylev please see https://github.com/protocolbuffers/protobuf/actions/runs/17304047679/job/49122338767

🔥 Exception or Error


ERROR: C:/tmp/3hjz7nbt/external/+_repo_rules+local_python3/BUILD.bazel:11:28: invalid escape sequence: \h. Use '\\' to insert '\'.
ERROR: C:/tmp/3hjz7nbt/external/+_repo_rules+local_python3/BUILD.bazel:11:44: invalid escape sequence: \w. Use '\\' to insert '\'.
ERROR: C:/tmp/3hjz7nbt/external/+_repo_rules+local_python3/BUILD.bazel:11:52: invalid escape sequence: \P. Use '\\' to insert '\'.
ERROR: C:/tmp/3hjz7nbt/external/+_repo_rules+local_python3/BUILD.bazel:11:66: invalid escape sequence: \x. Use '\\' to insert '\'.
ERROR: C:/tmp/3hjz7nbt/external/+_repo_rules+local_python3/BUILD.bazel:11:70: invalid escape sequence: \p. Use '\\' to insert '\'.
ERROR: C:/tmp/3hjz7nbt/external/+_repo_rules+local_python3/BUILD.bazel: no such target '@@+_repo_rules+local_python3//:os': target 'os' not declared in package '' defined by C:/tmp/3hjz7nbt/external/+_repo_rules+local_python3/BUILD.bazel

🌍 Your Environment

Windows CI

Output of bazel version:

7.x, 8.x

Rules_python version:

1.5.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions