Skip to content

Commit 2b3acf2

Browse files
Update tools for generation
1 parent 979de41 commit 2b3acf2

File tree

4 files changed

+4
-47
lines changed

4 files changed

+4
-47
lines changed

Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

Taskfile.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,10 @@ tasks:
99
- task: lint
1010
- task: test
1111

12-
buf-image:
13-
summary: Builds an image locally for running Buf.
14-
cmds:
15-
- docker build -f buf.Dockerfile -t localbuf:latest .
16-
1712
lint:
1813
summary: Lints Protobuf and Go.
19-
deps:
20-
- task: buf-image
2114
cmds:
22-
- docker run --rm -v "$(pwd):{{.wd}}" -w {{.wd}} localbuf lint
15+
- docker run --rm -v "$(pwd):{{.wd}}" -w {{.wd}} bufbuild/buf:1.31 lint
2316
- golangci-lint run ./...
2417

2518
test:
@@ -30,7 +23,5 @@ tasks:
3023

3124
generate:
3225
summary: Generates Go from Protobuf.
33-
deps:
34-
- task: buf-image
3526
cmds:
36-
- docker run --rm -v "$(pwd):/{{.wd}}" -w {{.wd}} localbuf generate
27+
- docker run --rm -v "$(pwd):/{{.wd}}" -w {{.wd}} bufbuild/buf:1.31 generate

buf.Dockerfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

buf.gen.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ managed:
33
enabled: true
44

55
plugins:
6-
- name: go
6+
- plugin: buf.build/protocolbuffers/go:v1.33.0
77
out: api
8-
opt:
9-
- paths=source_relative
8+
opt: paths=source_relative

0 commit comments

Comments
 (0)