summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorAdam Dinwoodie <adam@dinwoodie.org>2024-06-21 11:42:20 +0100
committerAdam Dinwoodie <adam@dinwoodie.org>2025-01-05 21:46:19 +0000
commit1a72fa0e199abae4c037a18fa23931176f91de8f (patch)
treef6c01a3d0e80bdeb6baec28f454fbb5293d6fb46 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent289a4c663159d2332b3a513220a4a3adb2944c79 (diff)
fetchFromGitHub: use the API tarball endpoint
GitHub currently has two kinds of personal access token: "classic" and "fine-grained". Fine-grained personal access tokens, as the name suggests, allow much more control over what the token can and cannot do, and in particular allow users to specify which repositories the token should provide access to. Unfortunately, fine-grained tokens don't allow access to repository archive tarballs for private repositories at (say) https://github.com/me-and/private-demo/archive/HEAD.tar.gz. Fortunately, the GitHub API endpoint does provide this access, and also works with classic tokens and -- for public repositories -- no token at all. To allow folk to use fine-grained access tokens, use the GitHub API for accessing private repos. Keep using the existing interface for non-private repos, as we can only assume an authenticated user for private repos, and unauthenticated users have restrictive rate limits on the API interface. Fixes #321481
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions