Skip to content

Drop unused SystemPackage import from FileSystemTests#3623

Merged
Lukasa merged 1 commit into
apple:mainfrom
curmudg-eon:fix-filetype-ambiguity
Jun 13, 2026
Merged

Drop unused SystemPackage import from FileSystemTests#3623
Lukasa merged 1 commit into
apple:mainfrom
curmudg-eon:fix-filetype-ambiguity

Conversation

@curmudg-eon

Copy link
Copy Markdown
Contributor

Drop unused SystemPackage import from FileSystemTests

Motivation:

swift-system 1.7.0 exposes a new type named FileType, which is ambiguous with NIOFS.FileType when both modules are imported in the same file. This causes a compile-time error when building FileSystemTests.swift in the NIOFSIntegrationTests target.

Fixes #3622.

Modifications:

Drop the unused SystemPackage import in FileSystemTests.swift.

Result:

NIOFSIntegrationTests builds against swift-system 1.7.0 and later.

Motivation:

swift-system 1.7.0 exposes a new type named `FileType`, which is ambiguous with `NIOFS.FileType` when both modules are imported in the same file. This causes a compile-time error when building `FileSystemTests.swift` in the `NIOFSIntegrationTests` target.

Modifications:

Drop the unused `SystemPackage` import in `FileSystemTests.swift`.

Result:

`NIOFSIntegrationTests` builds against swift-system 1.7.0 and later.

@Lukasa Lukasa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks so much!

@Lukasa Lukasa added the semver/none No version bump required. label Jun 13, 2026
@Lukasa Lukasa enabled auto-merge (squash) June 13, 2026 02:21
@Lukasa Lukasa merged commit 3263350 into apple:main Jun 13, 2026
50 of 55 checks passed
@curmudg-eon curmudg-eon deleted the fix-filetype-ambiguity branch June 13, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The tests stopped building for linux and Android with the latest Swift System 1.7.0 tag

2 participants