Restore fails with new AzureDeops Urls
mduu opened this issue · comments
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
- Set up a NPM feed in Azure Artifacts.
- Add the new Url (eg.
https://pkgs.dev.azure.com/mycompany/..
) into the .npmrc file instead the oldvisualstudio.com
Urls. - 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
I've pushed an update for the new url support. Let me know if it solves your problem.