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

improve regex match of json field in init script #151

Merged
merged 1 commit into from
Aug 22, 2020
Merged

Conversation

Theodus
Copy link
Contributor

@Theodus Theodus commented Aug 22, 2020

Modifications to the Cloudsmith API have resulted in mangled version identifiers for the initial ponyup install. This has resulted in the "tags": {"version": ["latest"]}, being matched as the version, resulting in the following output for ponyup show:

ponyup-release-[latest]}-x86_64-linux

The updated regex should be sufficient to prevent such an issue from occurring in the future without requiring jq to be available on the user's system.

Modifications to the Cloudsmith API have resulted in mangled version identifiers for the initial ponyup install. This has resulted in the `"tags": {"version": ["latest"]},` being matched as the version, resulting in the following output for `ponyup show`:
```
ponyup-release-[latest]}-x86_64-linux
```
The updated regex should be sufficient to prevent such an issue from occurring in the future without requiring `jq` to be available on the user's system.
@Theodus Theodus requested a review from SeanTAllen August 22, 2020 14:49
@SeanTAllen SeanTAllen merged commit c2403c1 into master Aug 22, 2020
@SeanTAllen SeanTAllen deleted the init-json branch August 22, 2020 15:18
SeanTAllen added a commit that referenced this pull request Aug 22, 2020
SeanTAllen added a commit that referenced this pull request Aug 22, 2020
Theodus added a commit that referenced this pull request Aug 22, 2020
Theodus added a commit that referenced this pull request Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants