Skip to content

Commit e948456

Browse files
authored
Chore update license file year and tools (#30)
Updates LICENSE and tools. --------- Signed-off-by: Edward McFarlane <emcfarlane@buf.build>
1 parent 89db5fe commit e948456

19 files changed

Lines changed: 51 additions & 70 deletions

File tree

.golangci.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,18 @@ linters:
2626
disable:
2727
- cyclop # covered by gocyclo
2828
- depguard # unnecessary for small libraries
29-
- deadcode # abandoned
30-
- exhaustivestruct # replaced by exhaustruct
3129
- funlen # rely on code review to limit function length
3230
- gocognit # dubious "cognitive overhead" quantification
3331
- gofumpt # prefer standard gofmt
3432
- goimports # rely on gci instead
35-
- golint # deprecated by Go team
36-
- gomnd # some unnamed constants are okay
37-
- ifshort # deprecated by author
3833
- inamedparam # convention is not followed
39-
- interfacer # deprecated by author
4034
- ireturn # "accept interfaces, return structs" isn't ironclad
4135
- lll # don't want hard limits for line length
4236
- maintidx # covered by gocyclo
43-
- maligned # readability trumps efficient struct packing
4437
- nlreturn # generous whitespace violates house style
4538
- nonamedreturns # named returns are fine; it's *bare* returns that are bad
46-
- nosnakecase # deprecated in https://github.com/golangci/golangci-lint/pull/3065
4739
- protogetter # too many false positives
48-
- scopelint # deprecated by author
49-
- structcheck # abandoned
5040
- testpackage # internal tests are fine
51-
- varcheck # abandoned
5241
- wrapcheck # don't _always_ need to wrap errors
5342
- wsl # generous whitespace violates house style
5443
issues:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2023-2024 The Connect Authors
189+
Copyright 2023-2025 The Connect Authors
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ MAKEFLAGS += --no-print-directory
99
BIN := .tmp/bin
1010
export PATH := $(BIN):$(PATH)
1111
export GOBIN := $(abspath $(BIN))
12-
COPYRIGHT_YEARS := 2023-2024
12+
COPYRIGHT_YEARS := 2023-2025
1313
LICENSE_IGNORE := --ignore testdata/
1414

1515
.PHONY: help
@@ -70,15 +70,15 @@ checkgenerate:
7070

7171
$(BIN)/buf: Makefile
7272
@mkdir -p $(@D)
73-
go install github.com/bufbuild/buf/cmd/buf@v1.46.0
73+
go install github.com/bufbuild/buf/cmd/buf@v1.50.0
7474

7575
$(BIN)/license-header: Makefile
7676
@mkdir -p $(@D)
77-
go install github.com/bufbuild/buf/private/pkg/licenseheader/cmd/license-header@v1.46.0
77+
go install github.com/bufbuild/buf/private/pkg/licenseheader/cmd/license-header@v1.50.0
7878

7979
$(BIN)/golangci-lint: Makefile
8080
@mkdir -p $(@D)
81-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0
81+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63.4
8282

8383
$(BIN)/protoc-gen-connect-go: Makefile go.mod
8484
@mkdir -p $(@D)

buf.gen.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
version: v1
1+
version: v2
22
managed:
33
enabled: true
4-
go_package_prefix:
5-
default: connectrpc.com/validate/internal/gen
6-
except:
7-
- buf.build/bufbuild/protovalidate
4+
disable:
5+
- file_option: go_package
6+
module: buf.build/bufbuild/protovalidate
7+
override:
8+
- file_option: go_package_prefix
9+
value: connectrpc.com/validate/internal/gen
810
plugins:
9-
- plugin: go
11+
- local: protoc-gen-go
1012
out: internal/gen
1113
opt: paths=source_relative
12-
- plugin: connect-go
14+
- local: protoc-gen-connect-go
1315
out: internal/gen
1416
opt: paths=source_relative

buf.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Generated by buf. DO NOT EDIT.
2+
version: v2
3+
deps:
4+
- name: buf.build/bufbuild/protovalidate
5+
commit: b9b8148056b94f6898cc669574bae125
6+
digest: b5:c592a9051e010e7467dcb8eefcf098ba2ee1be927ea7ac870fa584cca7ca8198e04ed4deb0b973eddde7df42b289f6a077f59ca11d8e8a567d855061a6a97ce4

buf.work.yaml

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

buf.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: v2
2+
modules:
3+
- path: internal/proto
4+
deps:
5+
- buf.build/bufbuild/protovalidate
6+
lint:
7+
use:
8+
- STANDARD
9+
disallow_comment_ignores: true
10+
breaking:
11+
use:
12+
- FILE

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.21.1
44

55
require (
66
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.4-20250130201111-63bb56e20495.1
7-
connectrpc.com/connect v1.17.0
7+
connectrpc.com/connect v1.18.1
88
github.com/bufbuild/protovalidate-go v0.9.1
99
github.com/stretchr/testify v1.10.0
1010
google.golang.org/protobuf v1.36.4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.4-2025013020111
22
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.4-20250130201111-63bb56e20495.1/go.mod h1:novQBstnxcGpfKf8qGRATqn1anQKwMJIbH5Q581jibU=
33
cel.dev/expr v0.19.1 h1:NciYrtDRIR0lNCnH1LFJegdjspNx9fI59O7TWcua/W4=
44
cel.dev/expr v0.19.1/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw=
5-
connectrpc.com/connect v1.17.0 h1:W0ZqMhtVzn9Zhn2yATuUokDLO5N+gIuBWMOnsQrfmZk=
6-
connectrpc.com/connect v1.17.0/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8=
5+
connectrpc.com/connect v1.18.1 h1:PAg7CjSAGvscaf6YZKUefjoih5Z/qYkyaTrBW8xvYPw=
6+
connectrpc.com/connect v1.18.1/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8=
77
github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI=
88
github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g=
99
github.com/bufbuild/protovalidate-go v0.9.1 h1:cdrIA33994yCcJyEIZRL36ZGTe9UDM/WHs5MBHEimiE=

internal/gen/example/calculator/v1/calculator.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)