Skip to content

Commit

Permalink
Allow setting spdx_license_id in module upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed Oct 25, 2024
1 parent c4103f0 commit d530ee6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buf/registry/module/v1/commit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,10 @@ message Commit {
(buf.validate.field).string.max_len = 255,
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
// The SPDX License Identifier of the Commit.
//
// May be empty if the SPDX License Identifier was not explicitly set during upload, if the
// license file was not present, or if it was not possible to detect the SPDX License Identifier
// from the license file.
string spdx_license_id = 8;
}
3 changes: 3 additions & 0 deletions buf/registry/module/v1/upload_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ message UploadRequest {
(buf.validate.field).string.max_len = 255,
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
// The SPDX License Identifier. If this field is not set, the SPDX License Identifier will be
// detected from the license file, if present.
string spdx_license_id = 5;
}
// The Contents of all references.
repeated Content contents = 1 [(buf.validate.field).repeated.min_items = 1];
Expand Down

0 comments on commit d530ee6

Please sign in to comment.