Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release][Java] Maven version detection in verification script may not work #41280

Closed
kou opened this issue Apr 18, 2024 · 1 comment
Closed

Comments

@kou
Copy link
Member

kou commented Apr 18, 2024

Describe the bug, including details regarding any error messages, version, and platform.

Maven may use escape sequence for mvn -v. So $(mvn -v | head -n 1 | awk '{print $3}') may have a escape sequence.

Here is an example case of this:

$ x="$(mvn -v | head -n 1 | awk '{print $3}')" ruby -e 'p ENV["x"]'
"3.8.7\e[m"

Component(s)

Java

@kou kou added the Type: bug label Apr 18, 2024
assignUser pushed a commit that referenced this issue Apr 18, 2024
…41281)

### Rationale for this change

If `mvn -v` uses escape sequence, our verification script detects wrong version information.

### What changes are included in this PR?

Ensure disabling escape sequence of `mvn -v`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: #41280

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
@assignUser assignUser added this to the 16.1.0 milestone Apr 18, 2024
@assignUser
Copy link
Member

Issue resolved by pull request 41281
#41281

raulcd pushed a commit that referenced this issue Apr 29, 2024
…41281)

### Rationale for this change

If `mvn -v` uses escape sequence, our verification script detects wrong version information.

### What changes are included in this PR?

Ensure disabling escape sequence of `mvn -v`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: #41280

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
tolleybot pushed a commit to tmct/arrow that referenced this issue May 2, 2024
…ust (apache#41281)

### Rationale for this change

If `mvn -v` uses escape sequence, our verification script detects wrong version information.

### What changes are included in this PR?

Ensure disabling escape sequence of `mvn -v`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#41280

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
vibhatha pushed a commit to vibhatha/arrow that referenced this issue May 25, 2024
…ust (apache#41281)

### Rationale for this change

If `mvn -v` uses escape sequence, our verification script detects wrong version information.

### What changes are included in this PR?

Ensure disabling escape sequence of `mvn -v`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#41280

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants