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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ lint: $(BIN)/buf ## Lint all APIs

.PHONY: upgrade
upgrade: $(BIN)/buf ## Upgrade dependencies
buf mod update
buf dep update

.PHONY: generate
generate: $(BIN)/buf $(BIN)/license-header ## Format and regenerate license headers
Expand Down
4 changes: 2 additions & 2 deletions buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
version: v2
deps:
- name: buf.build/bufbuild/protovalidate
commit: a6c49f84cc0f4e038680d390392e2ab0
digest: b5:e968392e88ff7915adcbd1635d670b45bff8836ec2415d81fc559ca5470a695dbdc30030bad8bc5764647c731079e9e7bba0023ea25c4e4a1672a7d2561d4a19
commit: 6c6e0d3c608e4549802254a2eee81bc8
digest: b5:a7ca081f38656fc0f5aaa685cc111d3342876723851b47ca6b80cbb810cbb2380f8c444115c495ada58fa1f85eff44e68dc54a445761c195acdb5e8d9af675b6
4 changes: 2 additions & 2 deletions buf/plugin/info/v1/license.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ message License {
string spdx_license_id = 1 [
(buf.validate.field).string.min_len = 1,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-.+]+$",
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
(buf.validate.field).ignore = IGNORE_IF_ZERO_VALUE
];
// The source of a license is either raw text, or a URL that contains the license.
oneof source {
Expand All @@ -38,7 +38,7 @@ message License {
string text = 2;
// The url that contains the license.
string url = 3 [
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED,
(buf.validate.field).ignore = IGNORE_IF_ZERO_VALUE,
(buf.validate.field).string.uri = true
];
}
Expand Down