Skip to content
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

Merged
merged 3 commits into from
Dec 28, 2024
Merged

Conversation

johnynek
Copy link
Owner

part of #1152

message Version {
int32 major = 1;
int32 minor = 2;
int32 patch = 3;
Copy link
Owner Author

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
Copy link
Owner Author

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)
Copy link
Owner Author

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;
Copy link
Owner Author

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
Copy link
Owner Author

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
}
Copy link
Owner Author

@johnynek johnynek Dec 27, 2024

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 rwith distance proportional to 2^r (to make it navigable quickly) (maybe around log depth previous links).

@johnynek johnynek merged commit 18b58bb into main Dec 28, 2024
9 checks passed
@johnynek johnynek deleted the oscar/20241226_add_library_proto branch December 28, 2024 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant