Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log warnings to stderr for "bundle validate -o json" #2109

Merged
merged 4 commits into from
Jan 10, 2025

Conversation

denik
Copy link
Contributor

@denik denik commented Jan 9, 2025

Changes

Previously diagnostics were not seen in JSON output mode. This change prints them to stderr.

This also fixes acceptance tests to preprocess all output with s/execPath/$CLI/ not just output.txt.

Tests

Existing acceptance tests. In one case I've added non-json command to check that they match in output.

cmd/bundle/validate.go Outdated Show resolved Hide resolved
@denik denik requested a review from pietern January 9, 2025 15:57
@denik denik temporarily deployed to test-trigger-is January 9, 2025 16:31 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is January 9, 2025 16:33 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is January 9, 2025 19:36 — with GitHub Actions Inactive
@denik denik added this pull request to the merge queue Jan 10, 2025
Merged via the queue into main with commit 6d3b415 Jan 10, 2025
9 checks passed
@denik denik deleted the denik/validate-json-with-warnings branch January 10, 2025 08:58
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.

3 participants