Skip to content

Conversation

@nwt
Copy link
Member

@nwt nwt commented Nov 3, 2025

StdioEngine.Get wraps os.Stdin with io.NopCloser and notSupportedReaderAt to hide its Close and ReadAt methods. This doesn't appear to be necessary, and exposing ReadAt enables reading CSUP and Parquet files from standard input.

StdinEngine.Get wraps os.Stderr with io.NopCloser and
notSupportedReaderAt to hide its Close and ReadAt methods.  This doesn't
appear to be necessary, and exposing ReadAt enables reading CSUP and
Parquet files from standard input.
@nwt nwt requested a review from a team November 3, 2025 21:58
@nwt nwt merged commit c862d1d into main Nov 4, 2025
3 checks passed
@nwt nwt deleted the pkg-storage-stdin-close-and-readat branch November 4, 2025 01:31
@nwt nwt changed the title pkg/storage: expose os.Stderr's Close and ReadAt methods pkg/storage: expose os.Stdin's Close and ReadAt methods Nov 4, 2025
nwt added a commit that referenced this pull request Nov 4, 2025
Exposing os.Stdin.Close in #6338 was a mistake because opening
stdio:stdin with pkg/storage, closing it, and opening it again now
returns a reader on which reads always fail with "read /dev/stdin: file
already closed".  Hide os.Stdin.Close again to prevent that error.
nwt added a commit that referenced this pull request Nov 4, 2025
Exposing os.Stdin.Close in #6338 was a mistake because opening
stdio:stdin with pkg/storage, closing it, and opening it again now
returns a reader on which reads always fail with "read /dev/stdin: file
already closed".  Hide os.Stdin.Close again to prevent that error.
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