Skip to content
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

Restore fails with new AzureDeops Urls #61

Closed
3 of 9 tasks
mduu opened this issue Jan 14, 2019 · 1 comment
Closed
3 of 9 tasks

Restore fails with new AzureDeops Urls #61

mduu opened this issue Jan 14, 2019 · 1 comment

Comments

@mduu
Copy link

mduu commented Jan 14, 2019

Are you reporting a bug or a feature request ?

  • Bug
  • Feature request

Description

The Url of Azure Artifacts (aka Package Manager) seems to be hardcoded in the plugin regarding MS Staff. As Microsoft is switch von visualstudio.com to dev.azure.com the restore fails. There is a workaround by specify custom Urls in Npm.PackagingCollectionUrl.

See additional informtation in this thread here (see "solution"):
https://developercommunity.visualstudio.com/content/problem/390198/azure-pipeline-can-not-restore-npm-packages-from-a.html

Expected behavior

Restore successful even if the new Azure DevOps Urls are used.

Reproduction

  1. Set up a NPM feed in Azure Artifacts.
  2. Add the new Url (eg. https://pkgs.dev.azure.com/mycompany/..) into the .npmrc file instead the old visualstudio.com Urls.
  3. Try restore using the Azure Pipeline build job.
2018-11-23T08:15:42.4164508Z ##[section]Starting: Install Packages 2018-11-23T08:15:42.4167557Z ============================================================================== 2018-11-23T08:15:42.4167615Z Task : Yarn task 2018-11-23T08:15:42.4167652Z Description : Executes Yarn 2018-11-23T08:15:42.4167726Z Version : 2.7.1003 2018-11-23T08:15:42.4167761Z Author : Geek Learning 2018-11-23T08:15:42.4167812Z Help : More Information (Version 2.7.1003).

Dear Angular and Ember CLI users, please check our known issues 2018-11-23T08:15:42.4167884Z ==============================================================================
2018-11-23T08:15:42.7769759Z SYSTEMVSSCONNECTION exists true
2018-11-23T08:15:43.0869009Z [command]/opt/hostedtoolcache/yarn/1.12.3/x64/yarn-v1.12.3/bin/yarn install
2018-11-23T08:15:49.4711417Z yarn install v1.12.3
2018-11-23T08:15:49.6383858Z [1/4] Resolving packages...
2018-11-23T08:15:50.4747834Z [2/4] Fetching packages...
2018-11-23T08:15:51.0772139Z error https://pkgs.dev.azure.com/mycompany/_packaging/myfeed/npm/registry/csstype/-/csstype-2.5.7.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "Unexpected end of data"
2018-11-23T08:15:51.0773517Z info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
2018-11-23T08:15:51.8502108Z ##[error]Error: /opt/hostedtoolcache/yarn/1.12.3/x64/yarn-v1.12.3/bin/yarn failed with return code: 1
2018-11-23T08:15:51.8531433Z ##[section]Finishing: Install Packages

In order to allow us to quickly reproduce you issue please include a link to a reproduction repository

System information

VSTS or TFS:

  • VSTS
  • TFS

Agent:

  • Hosted
  • Custom

OS:

  • Windows
  • Mac
  • Linux

Yarn version:
1.13.0 x64

Node version:
n/a

@sandorfr
Copy link
Member

I've pushed an update for the new url support. Let me know if it solves your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants