GoogleContainerTools / GoogleContainerTools/jib

Maven Jib build fails on Windows region settings set to Persian or Arabic

Open
#3,939 4 comments 0 reactions 0 assignees View on GitHub
priority: p4 type:bug
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

When the Windows region settings are set to Persian or Arabic, the .\mvnw compile jib:build command encounters an error.
![image](https://user-images.githubusercontent.com/11958698/220843930-d88a277b-29d4-44bc-affb-4e39fe845558.png)

The error message is as follows:

```
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.1:build (default-cli) on project SheroozDrive: Execution default-cli of goal com.google.cloud.tools:jib-maven-plugin:3.3.1:build failed: An API incompatibility was encountered while executing com.google.cloud.tools:jib-maven-plugin:3.3.1:build: java.lang.ExceptionInInitializerError: null
...
[ERROR] : Illegal repetition near index 251
[ERROR] : ^(?:((?:[a-zA-Z\d]|(?:[a-zA-Z\d][a-zA-Z\d-]*[a-zA-Z\d]))(?:\.(?:[a-zA-Z\d]|(?:[a-zA-Z\d][a-zA-Z\d-]*[a-zA-Z\d])))*(?::\d+)?)/)?((?:[a-z\d]+(?:(?:[_.]|__|-+)[a-z\d]+)*/)*[a-z\d]+(?:(?:[_.]|__|-+)[a-z\d]+)*)(?::([\w][\w.-]{0,127}))?(?:@(sha256:[a-f0-9]{۶۴}))?$
```
![image](https://user-images.githubusercontent.com/11958698/220842639-519a5fbe-bcf7-4276-b644-ea4f5d7ebb9c.png)
As you can see in the attached image, Persian number characters are being used, which is causing this error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.