bazelbuild / rules_pkg

Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)
Apache License 2.0
212 stars 166 forks source link

Getting SyntaxWarning: invalid escape sequence '\ ' #829

Closed thesayyn closed 3 months ago

thesayyn commented 4 months ago

After upgrading python to 3.12.2 i started getting these annoying warning messages;

INFO: From Writing: bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/jetty/jetty.tar [for tool]:
/private/var/tmp/_bazel_thesayyn/9000763e5f5851865f9d806cb10059e8/sandbox/darwin-sandbox/2378/execroot/distroless/bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/rules_pkg/pkg/private/tar/build_tar.runfiles/rules_pkg/pkg/private/tar/build_tar.py:29: SyntaxWarning: invalid escape sequence '\ '
  """Normalize a path to the format we need it.
aiuto commented 3 months ago

I think this was fixed by #815. Have you tried the latest release or from head?

AFMiziara commented 3 months ago

Using the latest version fixed the warning message for me.