-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
x/pkgsite: add postgres.GetLicenses function to return licenses for a given path #40027
Comments
Hi @julieqiu |
Please do! :) |
Hi @julieqiu Just to confirm if I understood it correctly, we need to implement - I am correct? If yes, then |
Thank you for contributing! :) That is correct. I would add the function to internal/postgres/licenses.go though, as opposed to |
ohh yeah... |
@julieqiu |
Yup! Check out doc/worker.md#populating-data-locally-using-the-worker for instructions. By the way, if you have other questions, feel free to reach out in the #pkgsite channel on Gophers Slack! |
Change https://golang.org/cl/241718 mentions this issue: |
Change https://golang.org/cl/242617 mentions this issue: |
As part of the new data model migration (#39629), we will have a single function get licenses for a given path (regardless of whether that path is a package, module, or directory).
This function will replace the existing LegacyGetPackageLicenses and LegacyGetModuleLicenses.
The function signature will be:
The function will execute the query below:
Only licenses relevant to the path should be returned. A license applies to the path if the license is in the path directory, or any of its parent directories.
The text was updated successfully, but these errors were encountered: