Skip to content

Fix readFileContents to support non-regular files via FileHandle fallback#562

Merged
daveinglis merged 1 commit into
swiftlang:mainfrom
daveinglis:fix_readfilecontents
Jun 15, 2026
Merged

Fix readFileContents to support non-regular files via FileHandle fallback#562
daveinglis merged 1 commit into
swiftlang:mainfrom
daveinglis:fix_readfilecontents

Conversation

@daveinglis

@daveinglis daveinglis commented May 27, 2026

Copy link
Copy Markdown
Contributor

The Data API is used for regular files (mmap performance) and FileHandle is the fallback for pipes, FIFOs, and character devices that Data rejects.

closes: swiftlang/swift-package-manager#9915

…back

The Data API is used for regular files (mmap performance) and
FileHandle is the fallback for pipes, FIFOs, and character devices
that Data rejects.
@daveinglis

Copy link
Copy Markdown
Contributor Author

@swift-ci test

1 similar comment
@daveinglis

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@daveinglis

Copy link
Copy Markdown
Contributor Author

@swift-ci test windows

@daveinglis daveinglis merged commit 660b191 into swiftlang:main Jun 15, 2026
52 checks passed
bkhouri pushed a commit that referenced this pull request Jun 25, 2026
…back (#562) (#566)

The Data API is used for regular files (mmap performance) and
FileHandle is the fallback for pipes, FIFOs, and character devices
that Data rejects.
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.

swift package-registry login --token-file rejects non-regular files (process substitution, /dev/stdin)

2 participants