x/pkgsite: create GetModuleInfo function #40032
Closed
Labels
Milestone
Comments
Hello @julieqiu, Can I pick this up ? |
Yes, please do! |
namaggarwal
added a commit
to namaggarwal/pkgsite
that referenced
this issue
Jul 5, 2020
GetModuleInfo returns the ModuleInfo for given module_path and version. This will replace LegacyGetModuleInfo. Fixes golang/go#40032
Change https://golang.org/cl/241038 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As part of the new data model migration (#39629), we will need a function return the ModuleInfo for a given module_path and version.
This function will eventually replace the existing LegacyGetModuleInfo function.
The function signature will be:
The function will execute the query below:
Unlike LegacyGetModuleInfo, it is expected that the version passed into the function will always be a semantic version (i.e. GetModuleInfo will NOT need to handle the case where
resolvedVersion == internal.LatestVersion
).The text was updated successfully, but these errors were encountered: