【问题标题】:Azure Pipelines GitHub Packages Don't WorkAzure Pipelines GitHub 包不起作用
【发布时间】:2020-08-10 23:56:20
【问题描述】:

按照此处的说明进行操作:

https://docs.microsoft.com/en-us/azure/devops/release-notes/2020/pipelines/sprint-170-update

具备以下条件:

  packages:
  - package: MyPkg
    type: NuGet
    connection: github
    name: TheOrg/TheRepo/ThePkg
    version: '*'

    - getPackage: MyPkg

Azure Pipelines 似乎并没有完全正确地做到这一点。我不确定这如何通过基本测试。

日志显示:

Using authentication information for the following URI: https://nuget.pkg.github.com/{ThePATUser}/index.json

那是错误的……我指定了一个组织。生成 PAT 的用户不是我尝试使用的 NuGet 提要

然后

"C:\Program Files\dotnet\dotnet.exe" add d:\a\1\Nuget\dotnet\tempCsproj_67.csproj package TheRepo -v * -n

这显然也是错误的。这个功能真的有用吗?

我查看了任务的源代码: https://github.com/microsoft/azure-pipelines-tasks/pull/12292/files#diff-6aadc4d5fa0b434a99fe35ba9d3d2ac4R55

据我所知,这只是糟糕的逻辑。希望 MS 的某个人确认此代码确实不起作用。

【问题讨论】:

    标签: azure-devops azure-pipelines github-package-registry


    【解决方案1】:

    我可以重现同样的问题。使用getPackage 步骤检索 github 包失败。提要 url 被评估为 PAT 用户提要 url,而不是组织提要 url。

    您可以单击this link 将此问题报告给 Microsoft 开发团队。希望他们会调查此问题并尽快提供修复!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-16
      • 2021-08-10
      • 2017-11-24
      相关资源
      最近更新 更多