Skip to content

Remove GetRemotePackageVersion and Add Get<registry>Version in protos #2218

Merged
joshcarp merged 6 commits intomainfrom
getregistryversion-proto
Jun 22, 2023
Merged

Remove GetRemotePackageVersion and Add Get<registry>Version in protos #2218
joshcarp merged 6 commits intomainfrom
getregistryversion-proto

Conversation

@joshcarp
Copy link
Contributor

Added directly from #2182 but I don't want to merge that because it's not in main in core yet and it can't be added to core yet because it isn't in main on buf yet so I'm making this PR so that I can implement it in core and then rebase buf

Copy link
Member

@stefanvanburen stefanvanburen left a comment

Choose a reason for hiding this comment

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

looks fine, just needs updates to comments


// GetRemotePackageVersion resolves the given plugin and module references to a version.
// GetGoVersion resolves the given plugin and module references to a version.
// The format of the version is determined by the plugin type.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// The format of the version is determined by the plugin type.

I think you can nix the second line for each of these, as the format of the version is fixed per-registry.

option idempotency_level = NO_SIDE_EFFECTS;
}
// GetSwiftVersion resolves the given plugin and module references to a version.
// The format of the version is determined by the plugin type.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// The format of the version is determined by the plugin type.

option idempotency_level = NO_SIDE_EFFECTS;
}
// GetMavenVersion resolves the given plugin and module references to a version.
// The format of the version is determined by the plugin type.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// The format of the version is determined by the plugin type.

option idempotency_level = NO_SIDE_EFFECTS;
}
// GetNPMVersion resolves the given plugin and module references to a version.
// The format of the version is determined by the plugin type.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// The format of the version is determined by the plugin type.

}

message GetMavenVersionResponse {
// version is the resolved version to be used with the go module proxy.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// version is the resolved version to be used with the go module proxy.
// version is the resolved version to be used with the maven repository.

}

message GetNPMVersionResponse {
// version is the resolved version to be used with the go module proxy.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// version is the resolved version to be used with the go module proxy.
// version is the resolved version to be used with the npm registry.

}

message GetSwiftVersionResponse {
// version is the resolved version to be used with the go module proxy.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// version is the resolved version to be used with the go module proxy.
// version is the resolved version to be used with the swift repository.

}

message GetMavenVersionResponse {
// version is the resolved version to be used with the maven registry.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// version is the resolved version to be used with the maven registry.
// version is the resolved version to be used with the maven repository.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We use the term registry everywhere don't we?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nvm apparently it's different for maven

@joshcarp joshcarp merged commit 36804d3 into main Jun 22, 2023
@joshcarp joshcarp deleted the getregistryversion-proto branch June 22, 2023 14:50
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.

2 participants