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

fix(naga-cli): allow output files with --stdin-file-path #6480

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Oct 30, 2024

Connections

Description

Change file handling in non-bulk-validation cases to be based on an iterator, and use it to correctly treat args.files' first entry as an input or output path in response to --stdin-file-path being specified.

Testing

Ran things manually with --stdin-file-path and without. I encourage reviewers to do their own testing, since

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@ErichDonGubler ErichDonGubler added type: bug Something isn't working naga Shader Translator labels Oct 30, 2024
@ErichDonGubler ErichDonGubler self-assigned this Oct 30, 2024
@ErichDonGubler ErichDonGubler requested a review from a team as a code owner October 30, 2024 23:05
Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@jimblandy jimblandy merged commit 16f012b into gfx-rs:trunk Oct 31, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
naga Shader Translator type: bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[naga-cli] Use of --stdin-file-path prevents writing output files
2 participants