bazelbuild / rules_docker

Rules for building and handling Docker images with Bazel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error pushing image to REG/REP:TAG: unable to push image to REG/REP:TAG: invalid character '*' in string escape code

nickbreen opened this issue Β· comments

🐞 bug report

Affected Rule

The issue is caused by the rule:

container_push

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Unknown

Description

A clear and concise description of the problem...

pusher produces this error (REG/REP:TAG elided):

Error pushing image to REG/REP:TAG: unable to push image to REG/REP:TAG: invalid character '*' in string escape code

REG is a FQDN.
REP is the path of the bazel module
TAG is of the form: NNNNNN-NNNNNN

It appears to be emitted by

return errors.Wrapf(err, "unable to push image to %s", dst)

It is pushing to an authenticated sonatype repository.

πŸ”¬ Minimal Reproduction

Not available.

πŸ”₯ Exception or Error

Error pushing image to REG/REP:TAG: unable to push image to REG/REP:TAG: invalid character '*' in string escape code

No additional log messages of note with --define=VERBOSE_LOGS=1

🌍 Your Environment

Operating System:
Fedora 36

Output of bazel version:

6.0.0 release

Rules_docker version:

v0.25.0

Anything else relevant?

There are no corresponding log events in our nexus repository: which indicates that pusher is not even attempting authentication or upload of the image.

It turns out this is due to invalid JSON from our credentials helper.