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

Add 'always overwrites' option for 'Extract Files' task. #11082

Closed
gavinwa opened this issue Aug 7, 2019 · 4 comments
Closed

Add 'always overwrites' option for 'Extract Files' task. #11082

gavinwa opened this issue Aug 7, 2019 · 4 comments

Comments

@gavinwa
Copy link

gavinwa commented Aug 7, 2019

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

I hope 'Extract Files' task can provide the option that always overwrites.
Here is the task link: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/extract-files?view=azure-devops

Question, Bug, or Feature?
Type: Feature

Enter Task Name: Add 'always overwrites' option for 'Extract Files' task.

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

  • Server - Azure Pipelines or TFS on-premises?

    • If using TFS on-premises, provide the version:

    • If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

  • Agent - Hosted or Private:

    • If using Hosted agent, provide agent queue name:

    • If using private agent, provide the OS of the machine running the agent and the agent version:

Issue Description

The task was blocked and failed by replace option prompt.

Task logs

[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

Would you like to replace the existing file:
Path: F:\agent-3_work\r1\a\ui-next\PaxHeader
Size: 168 bytes (1 KiB)
Modified: 2019-07-05 23:15:16
with the file from archive:
Path: PaxHeader
Size: 55099 bytes (54 KiB)
Modified: 2019-07-05 23:15:16
? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit?
Archives with Errors: 1

@jmalak
Copy link

jmalak commented Aug 17, 2019

I think it is bugy implementation of ExtractFile task.
All of used utilities by default generate prompt if output file exists.
It is not handled anyway.
Existing implementation doesn't use any option to well define behaviour for existing output files.
By example if you use tar.gz format on Windows then it fail if output file exists.
Default behaviour of tar is to override output files, but on Windows behaviour is wrong.

@github-actions
Copy link

This issue is stale because it has been open for a year with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

@github-actions github-actions bot added the stale label Aug 16, 2020
@jmalak
Copy link

jmalak commented Aug 16, 2020

Wasting of time to write here anything.

@github-actions
Copy link

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

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

No branches or pull requests

3 participants