-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Library to proto definition #1337
Conversation
message Version { | ||
int32 major = 1; | ||
int32 minor = 2; | ||
int32 patch = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to int64
// Message representing a Descriptor for versioning and identification | ||
message LibDescriptor { | ||
Version version = 1; // Semantic versioning information | ||
int32 depth = 2; // Depth in the dependency graph |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to top level. No need to copy this data in every descriptor.
message LibDescriptor { | ||
Version version = 1; // Semantic versioning information | ||
int32 depth = 2; // Depth in the dependency graph | ||
string vcs_indent = 3; // Version control system identifier (e.g., git:commit:aae) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same note about moving to top level.
|
||
// Message representing a Library | ||
message Library { | ||
string name = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add uri to main repo.
message LibHistory { | ||
LibDescriptor previous_patch = 1; // Descriptor for the previous patch version, if any | ||
LibDescriptor previous_minor = 2; // Descriptor for the previous minor version, if any | ||
LibDescriptor previous_major = 3; // Descriptor for the previous major version, if any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include previous_prerelease
LibDescriptor previous_patch = 1; // Descriptor for the previous patch version, if any | ||
LibDescriptor previous_minor = 2; // Descriptor for the previous minor version, if any | ||
LibDescriptor previous_major = 3; // Descriptor for the previous major version, if any | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add other_previous which is a repeated random link uniform on r
with distance proportional to 2^r
(to make it navigable quickly) (maybe around log depth previous links).
part of #1152