Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: install
uses: actions/setup-go@v7
with:
go-version: 1.23.x
go-version: 1.27.x

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed >= 1.26.7 to install the latest CLI.

cache-dependency-path: Makefile
- name: make
run: make
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024-2025 Buf Technologies, Inc.
Copyright 2024-2026 Buf Technologies, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ BIN := .tmp/bin
export PATH := $(BIN):$(PATH)
export GOBIN := $(abspath $(BIN))

BUF_VERSION := v1.42.0
COPYRIGHT_YEARS := 2024-2025
BUF_VERSION := v1.73.0
COPYRIGHT_YEARS := 2024-2026
LICENSE_IGNORE := -e .github/ -e buf.yaml

.PHONY: help
help: ## Describe useful make targets
Expand Down Expand Up @@ -46,7 +47,8 @@ generate: $(BIN)/buf $(BIN)/license-header ## Format and regenerate license head
license-header \
--license-type apache \
--copyright-holder "Buf Technologies, Inc." \
--year-range "$(COPYRIGHT_YEARS)"
--year-range "$(COPYRIGHT_YEARS)" \
$(LICENSE_IGNORE)
buf format -w

.PHONY: checkgenerate
Expand Down
2 changes: 1 addition & 1 deletion buf/plugin/check/v1/annotation.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Buf Technologies, Inc.
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion buf/plugin/check/v1/category.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Buf Technologies, Inc.
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion buf/plugin/check/v1/check.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Buf Technologies, Inc.
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion buf/plugin/check/v1/check_service.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Buf Technologies, Inc.
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion buf/plugin/check/v1/rule.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Buf Technologies, Inc.
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
5 changes: 4 additions & 1 deletion buf/plugin/descriptor/v1/file_descriptor.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Buf Technologies, Inc.
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -16,6 +16,7 @@ syntax = "proto3";

package buf.plugin.descriptor.v1;

import "buf/plugin/descriptor/v1/module_name.proto";
import "buf/validate/validate.proto";
import "google/protobuf/descriptor.proto";

Expand Down Expand Up @@ -60,4 +61,6 @@ message FileDescriptor {
//
// This matches the shape of the public_dependency and weak_dependency fields.
repeated int32 unused_dependency = 4;
// The name of the module that the file belongs to, if any.
ModuleName module_name = 5;
}
2 changes: 1 addition & 1 deletion buf/plugin/descriptor/v1/file_location.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Buf Technologies, Inc.
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
43 changes: 43 additions & 0 deletions buf/plugin/descriptor/v1/module_name.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package buf.plugin.descriptor.v1;

import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go/buf/plugin/descriptor/v1";

// The fully-qualified name of a module on the Buf Schema Registry.
message ModuleName {
// The registry hostname of the module.
//
// Required.
string registry = 1 [(buf.validate.field).required = true];
// The name of the owner of the module, either a user or organization.
//
// Required.
string owner = 2 [
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 48
];
// The name of the module.
//
// Required.
string module = 3 [(buf.validate.field).string = {
min_len: 2
max_len: 100
}];
}
7 changes: 2 additions & 5 deletions buf/plugin/info/v1/license.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Buf Technologies, Inc.
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -37,9 +37,6 @@ message License {
// The raw text of the license.
string text = 2;
// The url that contains the license.
string url = 3 [
(buf.validate.field).ignore = IGNORE_IF_ZERO_VALUE,
(buf.validate.field).string.uri = true
];
string url = 3 [(buf.validate.field).string.uri = true];

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes a lint warning w/ the latest CLI.

}
}
2 changes: 1 addition & 1 deletion buf/plugin/info/v1/plugin_info.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Buf Technologies, Inc.
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion buf/plugin/info/v1/plugin_info_service.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Buf Technologies, Inc.
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion buf/plugin/option/v1/option.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Buf Technologies, Inc.
// Copyright 2024-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Loading