-
Notifications
You must be signed in to change notification settings - Fork 22
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
add magefiles #115
add magefiles #115
Conversation
vroldanbet
commented
May 22, 2023
•
edited
Loading
edited
- introduces mage to handle common tasks
- improves proto generation so all tooling is pinned and it's run in CI exactly as it is locally
- updates all GH actions to use mage
a7ff095
to
305f8ad
Compare
@@ -1,23 +1,29 @@ | |||
#!/usr/bin/env -S buf generate buf.build/authzed/api:125e39e67bf60b2d19c4de15aaa69cb1bcbda28c --template | |||
#!/usr/bin/env -S go run github.com/bufbuild/buf/cmd/buf generate buf.build/authzed/api:125e39e67bf60b2d19c4de15aaa69cb1bcbda28c --template |
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.
this makes me think there's something we could do (in the future) with the buf api. fetch the latest tag and generate off it 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.
that'd be nice, something that updates the tag used, and then generates the code
magefile.go
Outdated
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.
for consistency, name this mage.go
?
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.
actually when you do mage -init
it generates a magefile.go
, why deviating from what the tool proposes?
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 frustrating; I just based it off of the docs: https://magefile.org/zeroinstall/
inspired by authzed/spicedb, this adds magefiles to manage common tasks via CLI and have minimal differences with what's run in CI