chore: move proto generation to mise tasks

This commit is contained in:
Pasha Sviderski
2026-03-19 17:32:48 +10:00
parent 3f95583dd4
commit 76880d901a
3 changed files with 15 additions and 12 deletions
+7
View File
@@ -13,6 +13,13 @@ protoc-gen-go-grpc = "1.5.1"
[env]
_.file = ".env"
[tasks.proto]
description = "Regenerate gRPC API code from .proto files"
run = """
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative \
--proto_path=. --proto_path=internal/machine/api/vendor internal/machine/api/pb/*.proto
"""
[tasks.mise-lock]
description = "Update mise.lock with hashes for all platforms"
run = "mise lock --platform linux-x64,macos-arm64"