Skip to content

Compress-Archive doesn't have -Force parameter #144

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

Open
3 tasks done
ForNeVeR opened this issue Dec 7, 2022 · 0 comments
Open
3 tasks done

Compress-Archive doesn't have -Force parameter #144

ForNeVeR opened this issue Dec 7, 2022 · 0 comments

Comments

@ForNeVeR
Copy link

ForNeVeR commented Dec 7, 2022

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

Not sure what's happening, but I've tried building Compress-Archive from this repository, and found that the -Force parameter is absent.

The same works well in PowerShell 7.3, but not in master from this repository.

Expected behavior

$ git clone [email protected]:PowerShell/Microsoft.PowerShell.Archive.git
$ Microsoft.PowerShell.Archive/Build.ps1
$ Import-Module Microsoft.PowerShell.Archive\src\bin\Release\Microsoft.PowerShell.Archive.psd1
$ Compress-Archive playground/* -DestinationPath 'file.zip' -Force
# should overwrite file "file.zip"

Actual behavior

# 
$ Compress-Archive playground/* -DestinationPath 'file.zip' -Force
Compress-Archive: A parameter cannot be found that matches parameter name 'Force'.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.0
PSEdition                      Core
GitCommitId                    7.3.0
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

Honestly I don't know; I use the sources from master

Visuals

No response

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