From 2a591c2aeed6ff0cc70f00a5a8bf06b112b433c2 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 15 Jul 2026 15:20:08 +0100 Subject: [PATCH] fix(package): exclude CloudHypervisor README (#798) ## Summary Exclude `Sources/CloudHypervisor/README.md` from the `CloudHypervisor` SwiftPM target. The README remains tracked and available as source documentation, while package evaluation and builds no longer emit an unhandled-file warning. ## Motivation [apple/containerization#782](https://github.com/apple/containerization/pull/782) added a standalone `CloudHypervisor` target with a README inside its source directory. SwiftPM requires non-source files in target directories to be declared as resources or excluded. This README is documentation rather than a runtime resource, so exclusion is the smallest accurate manifest change. ## Changes - Add `README.md` to the `CloudHypervisor` target's `exclude` list. - Preserve the existing README content and location. - Leave runtime code, products, resources, and package APIs unchanged. ## Validation ```sh swift package describe >/dev/null swift test --disable-automatic-resolution --filter CloudHypervisorTests make check git diff --check upstream/main...HEAD ``` - Package evaluation completes without the `Sources/CloudHypervisor/README.md` warning. - All 41 focused `CloudHypervisorTests` pass. - Swift formatting and Hawkeye license checks pass. - The committed diff has no whitespace errors. ## Compatibility And Risk This manifest-only change does not alter compiled sources, runtime resources, public APIs, or supported platforms. The README is already non-executable documentation, so excluding it accurately records SwiftPM's intended treatment of the file. ## Related - Follow-up to [apple/containerization#782](https://github.com/apple/containerization/pull/782). ## Release Note Highlight - Stops SwiftPM builds from warning about the `CloudHypervisor` README added by [apple/containerization#782](https://github.com/apple/containerization/pull/782). --- Package.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Package.swift b/Package.swift index a4e4b4e0..4a6ae289 100644 --- a/Package.swift +++ b/Package.swift @@ -273,6 +273,9 @@ let package = Package( .product(name: "NIOPosix", package: "swift-nio"), .product(name: "NIOHTTP1", package: "swift-nio"), .product(name: "NIOConcurrencyHelpers", package: "swift-nio"), + ], + exclude: [ + "README.md" ] ), .testTarget(