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

chore: update dev guide to get version of gapic-showcase to install. #2451

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

zhumin8
Copy link
Contributor

@zhumin8 zhumin8 commented Feb 8, 2024

This addition removes the trailing ANSI escape sequence (\x1b[0m) on the returned version.
This regex \x1b\[[0-9;]*m matches ANSI escape sequences.

@zhumin8 zhumin8 requested a review from a team as a code owner February 8, 2024 19:40
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Feb 8, 2024
@zhumin8 zhumin8 requested review from alicejli and lqiu96 February 8, 2024 19:42
Copy link

sonarcloud bot commented Feb 8, 2024

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Feb 8, 2024

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@@ -18,7 +18,7 @@ update to a compatible client version in `./WORKSPACE`.
```shell
# Install the showcase server version defined in gapic-showcase/pom.xml
cd showcase
go install github.com/googleapis/gapic-showcase/cmd/gapic-showcase@v"$(cd gapic-showcase;mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)"
go install github.com/googleapis/gapic-showcase/cmd/gapic-showcase@v"$(cd gapic-showcase;mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout |sed 's/\x1b\[[0-9;]*m//g')"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I just ran command his and ran into the same error. Could you just a comment about the sed command at the end (removing ANSI escape codes)?

Also, I wonder if there is a better way to get the showcase version...

@zhumin8 zhumin8 merged commit cbed743 into main Feb 8, 2024
25 checks passed
@zhumin8 zhumin8 deleted the update-dev-guide branch February 8, 2024 21:37
ddixit14 pushed a commit that referenced this pull request Feb 15, 2024
…2451)

This addition removes the trailing ANSI escape sequence (`\x1b[0m`) on
the returned version.
This regex `\x1b\[[0-9;]*m` matches ANSI escape sequences.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants