chocolatey / chocolatey/choco

Add switch/feature to validate scripts as posh v2

Open
#1,064 1 comment 0 reactions 1 assignee Claimed by @ferventcoder View on GitHub
0 - Backlog Enhancement PowerShell Internal Host
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

### What You Are Seeing?
Even if a install or uninstall script uses function that isn't available in posh v2 choco still treats it as
a valid script.

### What is Expected?
Either an error or a warning that the install/uninstall script may not run for posh v2 users,
either automatically when running `choco pack` or with an extra switch

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.