Skip to content

fix: preserve json output for empty results - #257

Merged
andrew merged 1 commit into
git-pkgs:mainfrom
sanmaxdev:fix/json-empty-results-254
Jul 1, 2026
Merged

andrew merged 1 commit into
git-pkgs:mainfrom
sanmaxdev:fix/json-empty-results-254

Conversation

@sanmaxdev

Copy link
Copy Markdown
Contributor

Summary

  • Return empty JSON arrays for empty-result paths in history, licenses, integrity, and vulnerability commands.
  • Extend the empty-result JSON regression table to cover the remaining command branches.

Testing

  • go test ./cmd -run TestEmptyResultsRespectJSONFormat -count=1 -v
  • go test ./cmd -count=1
  • go build ./...
  • go test ./...
  • go tool golangci-lint run ./...
  • git diff --check

Closes #254

@andrew
andrew merged commit 80b4b46 into git-pkgs:main Jul 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON output: remaining empty-result branches print text

2 participants