Skip to content

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

Open
@ForNeVeR

Description

@ForNeVeR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions