Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
x/pkgsite: add postgres.GetLicenses function to return licenses for a given path #40027
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).
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.
Just to confirm if I understood it correctly, we need to implement -
I am correct?
If yes, then
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!