Skip to content

ci bash script relies on GNU-only \b regex syntax #3739

Description

@jiengup

Bug description

Follow-up to #3694.

scripts/ci/sync-rustc-version.sh relies on \b as a word-boundary assertion in RUST_IMAGE_PATTERN (line 82) and in the grep/sed expressions at lines 111, 113, 122, and 124. \b is GNU regex behavior rather than a portable sed/grep construct; implementations without it interpret this as brust: and never match FROM rust:....

The script therefore only works correctly with a GNU-compatible toolchain: --check can produce a false green and --fix can be a silent no-op for FROM-form Dockerfiles, while ARG RUST_VERSION remains handled. Replace \b with a portable expression.

Affected area / component

No response

Deployment

None

Versions

No response

Hardware / environment

No response

Sample code

No response

Logs

No response

Iggy server config

No response

Reproduction

No response

Contribution

  • I'm willing to submit a pull request to fix this bug

Good first issue

  • I think this could be a good first issue for a new contributor

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions