-
Notifications
You must be signed in to change notification settings - Fork 189
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
feat(dojoup): remove jq dependency #847
Conversation
Will this update avoid installing rereleases by default? |
@tarrencev this update shouldn't change the behavior at all, it just uses only new assumption made here is that we won't make |
Hm I think that assumption will break. We can avoid it with:
You can verify with the releases here: https://api.github.com/repos/dojoengine/dojo/releases |
That's why I suggested to use
The potential issue I think about is dojoup will install the latest release even if it's a maintenance release:
|
Ah sorry I missed your feedback. That seems like the most robust approach |
@ptisserand we cannot use And we want the latest |
looks like we have a regex wizard here, smart use of -A1 -B1 feature! |
cat release.json | grep -oE '"tag_name": "[^"]*"|"prerelease": (true|false)' | grep -B1 '"prerelease": false' | grep '"tag_name":' | grep -oP '"v[0-9]*\.[0-9]*\.[0-9]*"' | tr -d '"' | head -n 1 @tarrencev cleaned it up a bit and fixed it to not include
|
@lambda-0x Sorry for my mistake: I didn't get the point that the behavior of dojoup need to be modified with I suggest to update this comment:
|
good point, updated the comment. |
* feat(dojoup): remove jq dependency * make it more robust
Fix: #839