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

Various small fixes #853

Merged
merged 5 commits into from
Jan 30, 2025
Merged

Various small fixes #853

merged 5 commits into from
Jan 30, 2025

Conversation

Xophmeister
Copy link
Member

@Xophmeister Xophmeister commented Jan 28, 2025

Various small fixes in preparation for v0.6.0

Resolves #823
Resolves #825
Resolves #843

Description

  • Don't panic with info (or higher) logging when using process substitution to provide configuration.
  • Sensible logging of configuration sources.
  • Clean-up temporary files on process interruption.

Checklist

Checklist before merging:

  • CHANGELOG.md updated
  • README.md up-to-date

`tempfile::NamedTempFile` cleans up when dropped, but this can be
circumvented if the destructor never runs (e.g., receiving a SIGINT
signal). `tempfile::tempfile`, however, is automatically removed by the
OS when its last file handle is closed.

Note: This required re-implementing `OutputFile::persist` to copy the
buffer contents from the staging file to the actual output.

Resolves #843
@Xophmeister Xophmeister marked this pull request as ready for review January 28, 2025 16:22
Copy link
Member

@nbacquey nbacquey left a comment

Choose a reason for hiding this comment

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

LGTM

@Xophmeister Xophmeister merged commit c96777e into main Jan 30, 2025
10 checks passed
@Xophmeister Xophmeister deleted the chris/various-small-fixes branch January 30, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants