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

add magefiles #115

Merged
merged 2 commits into from
May 22, 2023
Merged

add magefiles #115

merged 2 commits into from
May 22, 2023

Conversation

vroldanbet
Copy link
Contributor

@vroldanbet vroldanbet commented May 22, 2023

  • 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

@vroldanbet vroldanbet force-pushed the add-mage branch 2 times, most recently from a7ff095 to 305f8ad Compare May 22, 2023 17:15
@vroldanbet vroldanbet marked this pull request as ready for review May 22, 2023 17:24
@vroldanbet vroldanbet requested a review from a team as a code owner May 22, 2023 17:24
@vroldanbet vroldanbet changed the title add mage add magefiles May 22, 2023
@vroldanbet vroldanbet requested a review from ecordell May 22, 2023 17:25
@@ -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
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor

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/

.github/workflows/lint.yaml Show resolved Hide resolved
inspired by authzed/spicedb, this adds
magefiles to manage common tasks via
CLI and have minimal differences
with what's run in CI
@vroldanbet vroldanbet added this pull request to the merge queue May 22, 2023
Merged via the queue into main with commit 61af567 May 22, 2023
@vroldanbet vroldanbet deleted the add-mage branch May 22, 2023 18:16
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants