From d33c539c9829823600a90a273ba252881181d670 Mon Sep 17 00:00:00 2001 From: Randy Reddig Date: Sat, 5 Oct 2024 08:18:12 -0700 Subject: [PATCH 1/3] buf.{yaml,lock}: add files for Buf registry See #173 for additional context. --- buf.lock | 6 ++++++ buf.yaml | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 buf.lock create mode 100644 buf.yaml diff --git a/buf.lock b/buf.lock new file mode 100644 index 0000000..c6fe643 --- /dev/null +++ b/buf.lock @@ -0,0 +1,6 @@ +# Generated by buf. DO NOT EDIT. +version: v2 +deps: + - name: buf.build/envoyproxy/protoc-gen-validate + commit: daf171c6cdb54629b5f51e345a79e4dd + digest: b5:c745e1521879f43740230b1df673d0729f55704efefdcfc489d4a0a2d40c92a26cacfeab62813403040a8b180142d53b398c7ca784a065e43823605ee49681de diff --git a/buf.yaml b/buf.yaml new file mode 100644 index 0000000..f84e62b --- /dev/null +++ b/buf.yaml @@ -0,0 +1,6 @@ +version: v2 +modules: + - path: . + name: buf.build/alta/protopatch +deps: + - buf.build/envoyproxy/protoc-gen-validate From ef76e9f68a6431a95c0af104f2fa50af1ead9f66 Mon Sep 17 00:00:00 2001 From: Randy Reddig Date: Sat, 5 Oct 2024 08:20:53 -0700 Subject: [PATCH 2/3] CHANGELOG: noted buf.build https://buf.build/alta/protopatch --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b32a99b..5276daa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), This module now requires [Go 1.21](https://go.dev/doc/go1.21) or higher. +### Added +- Added support for [buf.build](https://buf.build/alta/protopatch). + ### Notes - Changelog from here forward will only include major dependency updates. From c957ab0c9f5f4feb5331517cd9aa2060478a1278 Mon Sep 17 00:00:00 2001 From: Randy Reddig Date: Sat, 5 Oct 2024 08:22:50 -0700 Subject: [PATCH 3/3] Makefile: add buf targets --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 5ed3953..be78ced 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,12 @@ install: tools: internal/tools/*.go go generate --tags tools ./internal/tools +buf-login: + buf registry login buf.build + +buf-push: + buf push + go_module = $(shell go list -m) proto_files = $(sort $(shell find . -name '*.proto')) proto_includes = \