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

fix localstack CLI version detection #31

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Conversation

alexrashed
Copy link
Member

Motivation

localstack/localstack#11474 changed the output of localstack --version.
This broke the version detection in out GitHub pipeline.
This PR fixes this by removing everything before (including) the last space character.
Unfortunately, sed isn't working well on MacOS which is why we are using bash parameter expansion to do that.

Changes

  • Trim the version output such that we get the plain CLI version.

@alexrashed alexrashed added the bug Something isn't working label Nov 19, 2024
@alexrashed alexrashed requested a review from dfangl November 19, 2024 16:14
@alexrashed alexrashed self-assigned this Nov 19, 2024
@alexrashed alexrashed merged commit 686d971 into main Nov 19, 2024
6 checks passed
@alexrashed alexrashed deleted the fix-version-detection branch November 19, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants