chocolatey / chocolatey/choco

choco pack - exclude files

Open
#2,164 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

`choco pack` tends to be hungry, grabbing everything in the current directory when it is run. It would be useful if there was an `--exclude` command line option similar to what NuGet itself offers. The use case I'm running into is when I need to use `choco pack` manually in a directory for a package normally managed by AU, to avoid picking up the update.ps1 script next to the nupkg file.

Contributor guide

Open the contributing guide

Research direction

Start at the choco pack command entry point and compare the requested --exclude behavior with the NuGet behavior referenced in the issue. Use the manual package directory containing update.ps1 as the reproduction case; done means choco pack accepts --exclude and does not include matching files.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
build-system, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.