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

Promoting npm package by referencing tarball (.tgz) file does not work on Windows build agent #33

Open
ghost opened this issue Sep 20, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 20, 2019

The task fails to promote an npm package by reading data from the package file. It fails when running tar command. It seems the issue is that tar does not like a colon (:) in the full path on Windows.

Probably the solution could be to add --force-local to tar command on windows. See this SO answer.

Task Version

Version: 2.0.4

Task Logs Output

2019-09-20T17:08:21.3894464Z ##[section]Starting: Promote package to Release View
2019-09-20T17:08:21.4011893Z ==============================================================================
2019-09-20T17:08:21.4011944Z Task         : Promote package to Release View
2019-09-20T17:08:21.4011970Z Description  : Promotes a package to a Release View in VSTS Package Management
2019-09-20T17:08:21.4012023Z Version      : 2.0.4
2019-09-20T17:08:21.4012049Z Author       : Rene van Osnabrugge
2019-09-20T17:08:21.4012073Z Help         : Version: 2.0.4. [More Information](https://github.com/renevanosnabrugge/vsts-promotepackage-task/wiki)
2019-09-20T17:08:21.4012098Z ==============================================================================
2019-09-20T17:08:22.7048810Z Promoting package(s) by reading metadata from package file(s) matching pattern '**/*.tgz' from root directory 'D:\a\r1\a\'
2019-09-20T17:08:23.3757665Z Matching paths found:
2019-09-20T17:08:23.3757828Z D:\a\r1\a\build-drop\package\package-name-0.2.8.tgz
2019-09-20T17:08:26.6568212Z ##[error]tar (child): Cannot connect to D: resolve failed
2019-09-20T17:08:26.6808279Z ##[section]Finishing: Promote package to Release View

Task Configuration Screenshot

image

@ghost
Copy link
Author

ghost commented Oct 5, 2019

Updated the issue with task version:
Version: 2.0.4

@rroman81
Copy link

rroman81 commented Mar 5, 2020

so is this integrated into latest release?

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

1 participant