-
Notifications
You must be signed in to change notification settings - Fork 6.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
Nuget push binary caching fails for python #23053
Comments
I think this might be a thing: https://docs.microsoft.com/de-de/nuget/reference/cli-reference/cli-ref-setapikey - name: "Setup NuGet apikey"
shell: "bash"
run: >
`./vcpkg/vcpkg fetch nuget | tail -n 1`
setapikey "<NUGET_REGISTRY_PAT>" -Source "<NUGET_REGISTRY>" |
But why would it be required for pushing python3 but not the 17 other packages which are successfully pushed? |
cc @BillyONeal |
Is there anything I can do to provide more input? I am not sure what the |
NuGet/Home#9775 (comment) |
@anders-wind have you tried this? |
Related, maybe: #22191 |
Hi guys, can anyone test whether #22191 works? Thanks. |
Im trying out the setapikey setup. Im getting
The secrets.PACKAGES_ACCESS_TOKEN is a personal access token from my account. I also tried with secrets.GITHUB_TOKEN |
If the packages are stored in a different repo, your PAT need to have the read and write packages persmissions. If it is the same repo, github token works,but might fail if multiple repos are using binary caching if there isnt a global repo to store the build packages |
Yeah, you need a repo as a location. I recommend just to create a new repo e.g. Permissions are looking good. |
Okay ill try that :) |
Okay, I got the setapikey working - it actually enables consistent pushes, but for whatever reason it does not provide neccesary permissions to download from the registry. So I need to input both username/password and the apikey
@mathisloge I tried adding a new repo but got a bunch of other errors so I returned to the org setup |
yeah username + password + apikey. |
I need to try if the GITHUB_TOKEN can also be used for the setapikey :) But yea hope the documentation will be updated - but this issue can be closed I guess :) Thanks for the help! |
Describe the bug
I'm trying to use the github nuget binary caching integration and while it works for most of our package it fails for python (dependency of pybind11)
I ran cmake with: -DVCPKG_INSTALL_OPTIONS=--debug
Here's our manifest
and I have the following in my github action:
VCPKG_BINARY_SOURCES: 'default;nuget,GitHub,readwrite'
Again it works for most packages, but not for python3.
Environment
To Reproduce
setup nuget credentials in github actions and configure vcpkg to use it.
add pybind11 as vcpkg dependency in manifest.
run cmake and see cache pushing fails.
Expected behavior
python3 dependency would be correctly pushed to the binary cache
Failure logs
The text was updated successfully, but these errors were encountered: