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

Keep -p option with exclude_packages option #469

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/bloat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ export async function runCargoBloat(cargoPath: string, packageName: string): Pro
let optionalArgs = core.getInput("bloat_args")

if (optionalArgs.length > 0) {
bloatArgs = ["bloat", ...optionalArgs.split(' ')]
bloatArgs = [
"bloat",
...optionalArgs.split(' '),
'-p',
packageName
]
}
bloatArgs.push('--message-format=json', '-n', '0')
const output = await captureOutput(cargoPath, bloatArgs)
Expand Down