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
9 changes: 9 additions & 0 deletions proto/hex_pb_package.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ message Release {
optional bytes outer_checksum = 5;
// Indexes into Package.advisories for advisories affecting this release
repeated uint32 advisory_indexes = 6;
// Release published timestamp
optional Timestamp published_at = 7;
}

message RetirementStatus {
Expand Down Expand Up @@ -78,3 +80,10 @@ message Dependency {
// If set, the repository where the dependency is located
optional string repository = 5;
}

// Based on google.protobuf.Timestamp
// https://github.com/protocolbuffers/protobuf/blob/v3.15.8/src/google/protobuf/timestamp.proto#L136:L147
message Timestamp {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The exact same type lives in the neighbour file

optional Timestamp updated_at = 3;
}
// Based on google.protobuf.Timestamp
// https://github.com/protocolbuffers/protobuf/blob/v3.15.8/src/google/protobuf/timestamp.proto#L136:L147
message Timestamp {
required int64 seconds = 1;
required int32 nanos = 2;

Yet, I've decided against sharing this type as I think it would be easier to replace it with a native protobuf Timestamp available in the third version of protobuf.

required int64 seconds = 1;
required int32 nanos = 2;
}
Loading
Loading