- Notifications
You must be signed in to change notification settings - Fork926
chore(scripts): add script to update list of experiments after release#13872
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Slick 👌
@@ -0,0 +1,177 @@ | |||
#!/usr/bin/env bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
BTW didn't we agree on moving to Go with new scripts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
That's fair, I began prototyping this as Bash (because Go isn't great for prototyping CLI command execution) and then didn't want to rewrite it 😅. But now that we know what needs to be done, doing so should be fairly easy.
# separated numbers and without utilizing the sort -V flag for the | ||
# best compatibility. | ||
echo "v$( | ||
curl -fsSL https://api.github.com/repos/coder/coder/releases | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
curious: can we add a small go app to mimicjq
? I'd like to prevent such command trains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
These are copy-pasta frominstall.sh
so the behavior is exactly the same. But I can simplify e.g. via git tags or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It could be simplified for sure. This comment intended to adopt any go-jq
solution.
done | ||
)" | ||
# Use awk to print everything outside the BEING/END block and insert the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
BEGIN? (typo)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I was hoping you wouldn't notice 🤫
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Nothing blocking, let's get this in.
fd10ea1
intomainUh oh!
There was an error while loading.Please reload this page.
Fixes#13119
For now there are no "safe" experimental features, so the list is empty. Here's an example of what this would look like if we added
main
branch to the list: