Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant