Skip to content

VCPKG binary caching fails to upload to Azure DevOps feed after interactive authentication #14840

@thomas-t1

Description

@thomas-t1

Describe the bug
Binary caching with nuget fails when attempting to upload package to Azure DevOps Artifacts feed.

Environment

  • OS: Windows 10
  • Compiler: MSVC 19.28.29334.0
  • VCPKG 2020.11-1

To Reproduce
Steps to reproduce the behavior:

  1. $env:VCPKG_BINARY_SOURCES='clear;nuget,https://pkgs.dev.azure.com/.../v3/index.json,readwrite;interactive'
  2. vcpkg install --triplet x64-windows-static --x-manifest-root C:\Temp\Test --debug
  3. See error
    Repro code when

Expected behavior
New nuget package should be uploaded to Azure DevOps artifact feed

Failure logs
Response status code does not indicate success: 400 (Bad Request - The request to the server did not include the header X-NuGet-ApiKey, but it is required even though credentials were provided. If using NuGet.exe, use the -ApiKey option to set this to an arbitrary value, for example "-ApiKey AzureDevOps"

The workaround provided in the comment below fixes the problem;

https://devblogs.microsoft.com/cppblog/vcpkg-accelerate-your-team-development-environment-with-binary-caching-and-manifests/#comment-1403

Metadata

Metadata

Labels

category:vcpkg-bugThe issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions