├── .dir-locals.el ├── .editorconfig ├── .github ├── ISSUE_TEMPLATE │ ├── BUG_REPORT.yml │ └── FEATURE_REQUEST.yml └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .mailfilter ├── .mailmap ├── .pep8 ├── .swift-version ├── .swiftformat ├── Benchmarks ├── Benchmarks │ └── PackageGraphBenchmarks │ │ └── PackageGraphBenchmarks.swift ├── Package.swift ├── README.md └── Thresholds │ ├── macos-arm64 │ ├── PackageGraphBenchmarks.SwiftPMWorkspaceModulesGraph.p90.json │ ├── PackageGraphBenchmarks.SyntheticModulesGraph.p90.json │ └── PackageGraphBenchmarks.SyntheticModulesGraphWithMacros.p90.json │ └── macosx-arm64 │ ├── PackageGraphBenchmarks.SwiftPMWorkspaceModulesGraph.p90.json │ └── PackageGraphBenchmarks.SyntheticModulesGraph.p90.json ├── BuildSupport └── SwiftSyntax │ └── CMakeLists.txt ├── CHANGELOG.md ├── CMakeLists.txt ├── CODEOWNERS ├── CONTRIBUTING.md ├── CONTRIBUTORS.txt ├── Documentation ├── ContinuousIntegration.md ├── Design │ ├── EvolutionIdeas.md │ ├── README.md │ └── SwiftBasedManifestFormat.md ├── ModuleAliasing.md ├── PackageCollections.md ├── PackageDescription.md ├── PackageRegistry │ ├── PackageRegistryUsage.md │ ├── Registry.md │ └── registry.openapi.yaml ├── PackageSecurity.md ├── Plugins.md ├── README.md ├── ReleaseNotes │ ├── 5.3.md │ ├── 5.4.md │ ├── 5.5.md │ ├── 5.6.md │ ├── 5.7.md │ ├── 5.8.md │ └── 5.9.md ├── Usage.md └── libSwiftPM.md ├── Examples └── package-info │ ├── Package.swift │ ├── README.md │ └── Sources │ └── package-info │ └── example.swift ├── Fixtures ├── BinaryLibraries │ └── Static │ │ └── Package1 │ │ ├── Package.swift │ │ ├── Simple.artifactbundle │ │ ├── Makefile │ │ ├── dist │ │ │ ├── linux │ │ │ │ ├── libSimple_arm64.a │ │ │ │ └── libSimple_x86_64.a │ │ │ └── macos │ │ │ │ ├── libSimple.a │ │ │ │ ├── libSimple_arm64.a │ │ │ │ └── libSimple_x86_64.a │ │ ├── include │ │ │ ├── simple.h │ │ │ └── simple.modulemap │ │ ├── info.json │ │ └── simple.c │ │ └── Sources │ │ ├── Example │ │ └── Example.swift │ │ └── Wrapper │ │ ├── include │ │ └── wrapper.h │ │ └── wrapper.c ├── CFamilyTargets │ ├── CDynamicLookup │ │ ├── Foo.c │ │ ├── Package.swift │ │ └── include │ │ │ └── Foo.h │ ├── CLibraryNoIncludeDir │ │ ├── Cfactorial │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── factorial │ │ │ │ ├── factorial.c │ │ │ │ └── factorial.h │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Client │ │ │ └── main.swift │ ├── CLibraryParentSearchPath │ │ ├── .gitignore │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── CHeaderInclude │ │ │ ├── answers.c │ │ │ └── include │ │ │ │ └── answers.h │ │ │ ├── Constants │ │ │ └── Constants.h │ │ │ └── HeaderInclude │ │ │ └── FinalForm.swift │ ├── CLibrarySources │ │ ├── Package.swift │ │ ├── Sources │ │ │ ├── Foo.c │ │ │ └── include │ │ │ │ └── Foo.h │ │ └── Tests │ │ │ ├── CLibrarySourcesTests │ │ │ └── foo.swift │ │ │ └── LinuxMain.swift │ ├── CLibraryWithSpaces │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── Bar with spaces │ │ │ ├── Bar.c │ │ │ └── include │ │ │ │ └── Bar │ │ │ │ └── Bar.h │ │ │ ├── Bar │ │ │ ├── Bar.c │ │ │ └── include │ │ │ │ └── Bar │ │ │ │ └── Bar.h │ │ │ ├── Baz │ │ │ └── main.swift │ │ │ └── Foo │ │ │ ├── Foo.c │ │ │ └── include │ │ │ └── Foo │ │ │ └── Foo.h │ ├── ModuleMapGenerationCases │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── Baz │ │ │ └── main.swift │ │ │ ├── FlatInclude │ │ │ ├── FlatInclude.c │ │ │ └── include │ │ │ │ └── FlatIncludeHeader.h │ │ │ ├── NoIncludeDir │ │ │ └── Jaz.c │ │ │ ├── NonModuleDirectoryInclude │ │ │ ├── Maz.c │ │ │ └── include │ │ │ │ └── NonModuleDirectoryInclude │ │ │ │ └── Maz.h │ │ │ ├── UmbrellaDirectoryInclude │ │ │ ├── Jaz.c │ │ │ └── include │ │ │ │ └── Paz.h │ │ │ ├── UmbrellaHeader │ │ │ ├── UmbrellaHeader.c │ │ │ └── include │ │ │ │ └── UmbrellaHeader │ │ │ │ └── UmbrellaHeader.h │ │ │ └── UmbrellaHeaderFlat │ │ │ ├── UmbrellaHeader.c │ │ │ └── include │ │ │ └── UmbrellaHeaderFlat.h │ ├── ObjCmacOSPackage │ │ ├── Package.swift │ │ ├── Sources │ │ │ ├── HelloWorldExample.m │ │ │ └── include │ │ │ │ └── HelloWorldExample.h │ │ └── Tests │ │ │ └── ObjCmacOSPackageTests │ │ │ └── HelloWorldTest.m │ └── SwiftCMixed │ │ ├── Package.swift │ │ └── Sources │ │ ├── CExec │ │ └── main.c │ │ ├── SeaExec │ │ └── main.swift │ │ └── SeaLib │ │ ├── Foo.c │ │ └── include │ │ └── Foo.h ├── Collections │ ├── GitHub │ │ ├── contributors.json │ │ ├── languages.json │ │ ├── license.json │ │ ├── metadata.json │ │ ├── readme.json │ │ └── releases.json │ ├── JSON │ │ ├── good.json │ │ └── good_signed.json │ └── Signing │ │ ├── TestIntermediateCA.cer │ │ ├── TestRootCA.cer │ │ ├── Test_ec.cer │ │ ├── Test_ec_key.pem │ │ ├── Test_rsa.cer │ │ └── Test_rsa_key.pem ├── DependencyResolution │ ├── External │ │ ├── Branch │ │ │ ├── Bar │ │ │ │ ├── Package.swift │ │ │ │ └── Sources │ │ │ │ │ └── Bar │ │ │ │ │ └── Bar.swift │ │ │ └── Foo │ │ │ │ ├── Package.swift │ │ │ │ └── Sources │ │ │ │ └── Foo │ │ │ │ └── Foo.swift │ │ ├── CUsingCDep │ │ │ ├── Bar │ │ │ │ ├── Package.swift │ │ │ │ └── Sources │ │ │ │ │ ├── SeaLover │ │ │ │ │ ├── Sea.c │ │ │ │ │ └── include │ │ │ │ │ │ └── Sea.h │ │ │ │ │ └── SwiftExec │ │ │ │ │ └── main.swift │ │ │ └── Foo │ │ │ │ ├── Foo.c │ │ │ │ ├── Package.swift │ │ │ │ └── include │ │ │ │ └── Foo │ │ │ │ └── Foo.h │ │ ├── Complex │ │ │ ├── FisherYates │ │ │ │ ├── Package.swift │ │ │ │ └── src │ │ │ │ │ └── Fisher-Yates_Shuffle.swift │ │ │ ├── PlayingCard │ │ │ │ ├── Package.swift │ │ │ │ └── src │ │ │ │ │ ├── PlayingCard.swift │ │ │ │ │ ├── Rank.swift │ │ │ │ │ └── Suit.swift │ │ │ ├── app │ │ │ │ ├── Package.swift │ │ │ │ └── main.swift │ │ │ ├── deck-of-playing-cards-local │ │ │ │ ├── Package.swift │ │ │ │ └── src │ │ │ │ │ └── Deck.swift │ │ │ └── deck-of-playing-cards │ │ │ │ ├── Package.swift │ │ │ │ └── src │ │ │ │ └── Deck.swift │ │ ├── Mirror │ │ │ ├── App │ │ │ │ ├── Package.swift │ │ │ │ └── main.swift │ │ │ ├── Bar │ │ │ │ ├── Bar.swift │ │ │ │ └── Package.swift │ │ │ ├── BarMirror │ │ │ │ ├── Bar.swift │ │ │ │ └── Package.swift │ │ │ └── Foo │ │ │ │ ├── Foo.swift │ │ │ │ └── Package.swift │ │ ├── PackageLookupCaseInsensitive │ │ │ ├── dep │ │ │ │ ├── Package.swift │ │ │ │ └── Sources │ │ │ │ │ └── Dep │ │ │ │ │ └── dep.swift │ │ │ └── pkg │ │ │ │ ├── Package.swift │ │ │ │ └── Sources │ │ │ │ └── pkg │ │ │ │ └── pkg.swift │ │ ├── Simple │ │ │ ├── Bar │ │ │ │ ├── Package.swift │ │ │ │ └── main.swift │ │ │ └── Foo │ │ │ │ ├── Foo.swift │ │ │ │ └── Package.swift │ │ └── XCFramework │ │ │ ├── Bar.xcframework │ │ │ └── Info.plist │ │ │ ├── Foo │ │ │ └── Foo.swift │ │ │ └── Package.swift │ └── Internal │ │ ├── Complex │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── Bar │ │ │ └── Bar.swift │ │ │ ├── Baz │ │ │ └── Baz.swift │ │ │ ├── Cat │ │ │ └── Cat.swift │ │ │ ├── Foo │ │ │ ├── Foo.swift │ │ │ └── main.swift │ │ │ └── Sound │ │ │ └── Sound.swift │ │ ├── InternalExecutableAsDependency │ │ ├── Bar │ │ │ ├── Bar.swift │ │ │ └── main.swift │ │ ├── Foo │ │ │ ├── Foo.swift │ │ │ └── main.swift │ │ └── Package.swift │ │ └── Simple │ │ ├── Bar │ │ └── Bar.swift │ │ ├── Foo │ │ ├── Foo.swift │ │ └── main.swift │ │ └── Package.swift ├── Macros │ └── MacroPackage │ │ ├── Package.swift │ │ └── Sources │ │ ├── MacroClient │ │ └── client.swift │ │ ├── MacroDef │ │ └── definition.swift │ │ └── MacroImpl │ │ └── macro.swift ├── Miscellaneous │ ├── -DSWIFT_PACKAGE │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── CLib │ │ │ ├── foo.c │ │ │ └── include │ │ │ │ └── CLib.h │ │ │ └── SwiftExec │ │ │ └── main.swift │ ├── APIDiff │ │ ├── Bar │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── Baz │ │ │ │ └── Baz.swift │ │ │ │ └── Qux │ │ │ │ └── Qux.swift │ │ ├── BrokenPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── BrokenPkg │ │ │ │ ├── bestHeaders │ │ │ │ │ └── header.h │ │ │ │ └── code.m │ │ │ │ └── Swift2 │ │ │ │ └── file.swift │ │ ├── CIncludePath │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── CSample │ │ │ │ ├── include │ │ │ │ │ ├── CSample.h │ │ │ │ │ └── config.h │ │ │ │ └── vendorsrc │ │ │ │ │ ├── include │ │ │ │ │ └── vendor.h │ │ │ │ │ └── src │ │ │ │ │ └── vendor.c │ │ │ │ └── Sample │ │ │ │ └── Sample.swift │ │ ├── CTargetDep │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── Bar │ │ │ │ └── Bar.swift │ │ │ │ └── Foo │ │ │ │ ├── Foo.c │ │ │ │ └── include │ │ │ │ └── Foo.h │ │ ├── Foo │ │ │ ├── Foo.swift │ │ │ └── Package.swift │ │ └── NonAPILibraryTargets │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ ├── Bar │ │ │ └── Bar.swift │ │ │ ├── Baz │ │ │ └── Baz.swift │ │ │ ├── Exec │ │ │ └── main.swift │ │ │ ├── Foo │ │ │ └── Foo.swift │ │ │ └── Qux │ │ │ └── Qux.swift │ ├── AtMainSupport │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── ClangExecSingleFile │ │ │ └── NotMain.c │ │ │ ├── SwiftExecMultiFile │ │ │ ├── NotMain.swift │ │ │ └── OtherFile.swift │ │ │ └── SwiftExecSingleFile │ │ │ └── NotMain.swift │ ├── CXX17CompilerCrash │ │ ├── v5_7 │ │ │ ├── Package.swift │ │ │ ├── include │ │ │ │ └── user_objects.h │ │ │ ├── lodepng │ │ │ │ ├── include │ │ │ │ │ └── lodepng.h │ │ │ │ └── lodepng.cpp │ │ │ └── src │ │ │ │ └── user_objects.cc │ │ └── v5_8 │ │ │ ├── Package.swift │ │ │ ├── include │ │ │ └── user_objects.h │ │ │ ├── lodepng │ │ │ ├── include │ │ │ │ └── lodepng.h │ │ │ └── lodepng.cpp │ │ │ └── src │ │ │ └── user_objects.cc │ ├── CheckTestLibraryEnvironmentVariable │ │ ├── Package.swift │ │ └── Tests │ │ │ └── CheckTestLibraryEnvironmentVariableTests │ │ │ └── CheckTestLibraryEnvironmentVariableTests.swift │ ├── CompileFails │ │ ├── Foo.swift │ │ └── Package.swift │ ├── DependenciesWarnings │ │ ├── app │ │ │ ├── Package.swift │ │ │ └── app.swift │ │ ├── dep1 │ │ │ ├── Package.swift │ │ │ └── code.swift │ │ └── dep2 │ │ │ ├── Package.swift │ │ │ └── code.swift │ ├── DependenciesWarnings2 │ │ ├── app │ │ │ ├── Package.swift │ │ │ └── app.swift │ │ ├── dep1 │ │ │ ├── Package.swift │ │ │ └── code.swift │ │ └── dep2 │ │ │ ├── Package.swift │ │ │ └── code.swift │ ├── DependencyEdges │ │ ├── External │ │ │ ├── dep1 │ │ │ │ ├── Foo.swift │ │ │ │ └── Package.swift │ │ │ ├── dep2 │ │ │ │ ├── Package.swift │ │ │ │ └── main.swift │ │ │ └── root │ │ │ │ ├── Bar.swift │ │ │ │ └── Package.swift │ │ └── Internal │ │ │ ├── Bar │ │ │ └── Bar.swift │ │ │ ├── Foo │ │ │ └── main.swift │ │ │ └── Package.swift │ ├── DifferentProductTargetName │ │ ├── Package.swift │ │ └── main.swift │ ├── DistantFutureDeploymentTarget │ │ ├── Package.swift │ │ └── Sources │ │ │ └── main.swift │ ├── DoNotFilterLinkerDiagnostics │ │ ├── Package.swift │ │ └── Sources │ │ │ └── DoNotFilterLinkerDiagnostics │ │ │ └── main.swift │ ├── EchoExecutable │ │ ├── Package.swift │ │ ├── Sources │ │ │ └── secho │ │ │ │ └── main.swift │ │ ├── Tests │ │ │ └── TestSuite │ │ │ │ └── Tests.swift │ │ ├── echo.bat │ │ ├── echo.sh │ │ ├── toolset.json │ │ └── toolset.win32.json │ ├── Edit │ │ ├── App │ │ │ ├── Package.swift │ │ │ └── src │ │ │ │ └── main.swift │ │ ├── Bar │ │ │ ├── Bar.swift │ │ │ └── Package.swift │ │ └── Foo │ │ │ ├── Foo.swift │ │ │ └── Package.swift │ ├── EmptyTestsPkg │ │ ├── .gitignore │ │ ├── Package.swift │ │ ├── Sources │ │ │ └── EmptyTestsPkg │ │ │ │ └── EmptyTestsPkg.swift │ │ └── Tests │ │ │ └── EmptyTestsPkgTests │ │ │ └── EmptyTestsTests.swift │ ├── Errors │ │ └── FatalErrorInSingleXCTest │ │ │ └── TypeLibrary │ │ │ ├── .gitignore │ │ │ ├── Package.swift │ │ │ ├── Sources │ │ │ └── TypeLibrary │ │ │ │ └── TypeLibrary.swift │ │ │ └── Tests │ │ │ └── TypeLibraryTests │ │ │ └── TypeLibraryTests.swift │ ├── ExactDependencies │ │ ├── FooExec │ │ │ ├── FooExec.swift │ │ │ ├── Package.swift │ │ │ └── main.swift │ │ ├── FooLib1 │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── FooLib1 │ │ │ │ └── FooLib1.swift │ │ │ │ └── cli │ │ │ │ └── main.swift │ │ ├── FooLib2 │ │ │ ├── FooLib2.swift │ │ │ └── Package.swift │ │ └── app │ │ │ ├── Package.swift │ │ │ └── main.swift │ ├── ExeTest │ │ ├── Package.swift │ │ ├── Sources │ │ │ └── Exe │ │ │ │ └── main.swift │ │ └── Tests │ │ │ └── ExeTests │ │ │ └── ExeTests.swift │ ├── FlatPackage │ │ ├── MyExec.swift │ │ ├── MyTest.swift │ │ ├── Package.swift │ │ └── README.md │ ├── ImportOfMissingDependency │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── A │ │ │ └── A.swift │ │ │ └── B │ │ │ ├── B.swift │ │ │ └── main.swift │ ├── LTO │ │ └── SwiftAndCTargets │ │ │ ├── .gitignore │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ ├── cLib │ │ │ ├── cLib.c │ │ │ └── include │ │ │ │ └── cLib.h │ │ │ ├── exe │ │ │ └── main.swift │ │ │ └── swiftLib │ │ │ └── swiftLib.swift │ ├── LibraryEvolution │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── A │ │ │ └── A.swift │ │ │ └── B │ │ │ └── B.swift │ ├── LocalPackageAsURL │ │ ├── Bar │ │ │ ├── Package.swift │ │ │ └── main.swift │ │ └── Foo │ │ │ ├── Foo.swift │ │ │ └── Package.swift │ ├── MissingDependency │ │ └── Bar │ │ │ ├── Package.swift │ │ │ └── main.swift │ ├── MultipleExecutables │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── exec1 │ │ │ └── main.swift │ │ │ ├── exec2 │ │ │ └── main.swift │ │ │ └── lib1 │ │ │ └── lib.swift │ ├── PackageEdit │ │ ├── bar │ │ │ ├── .gitignore │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── bar.swift │ │ ├── baz │ │ │ ├── .gitignore │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── baz.swift │ │ └── foo │ │ │ ├── .gitignore │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ └── main.swift │ ├── PackageNameFlag │ │ ├── appPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── App │ │ │ │ └── file.swift │ │ │ │ └── exe │ │ │ │ └── main.swift │ │ ├── barPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── Bar │ │ │ │ └── file.swift │ │ │ │ └── Baz │ │ │ │ └── file.swift │ │ └── fooPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ ├── Foo │ │ │ └── file.swift │ │ │ └── Zoo │ │ │ └── file.swift │ ├── PackageWithMalformedLibraryProduct │ │ ├── Package.swift │ │ └── Sources │ │ │ └── PackageWithMalformedLibraryProduct │ │ │ └── main.swift │ ├── PackageWithNonc99NameModules │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── A-B │ │ │ └── ab.swift │ │ │ ├── B-C │ │ │ └── bc.swift │ │ │ └── C D │ │ │ └── cd.swift │ ├── ParallelTestsPkg │ │ ├── .gitignore │ │ ├── Package.swift │ │ ├── Sources │ │ │ └── ParallelTestsPkg │ │ │ │ └── ParallelTestsPkg.swift │ │ └── Tests │ │ │ └── ParallelTestsPkgTests │ │ │ ├── ParallelTestsFailureTests.swift │ │ │ └── ParallelTestsTests.swift │ ├── ParseableInterfaces │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── A │ │ │ └── A.swift │ │ │ └── B │ │ │ └── B.swift │ ├── PkgConfig │ │ ├── CSystemModule │ │ │ ├── Package.swift │ │ │ ├── module.modulemap │ │ │ └── shim.h │ │ ├── SystemModule │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── SystemModule.c │ │ │ │ └── include │ │ │ │ └── SystemModule.h │ │ ├── SystemModuleUser │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── main.swift │ │ └── SystemModuleUserClang │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ └── main.c │ ├── PluginGeneratedResources │ │ ├── Package.swift │ │ ├── Plugins │ │ │ └── Generator │ │ │ │ └── plugin.swift │ │ └── Sources │ │ │ └── PluginGeneratedResources │ │ │ └── PluginGeneratedResources.swift │ ├── Plugins │ │ ├── AmbiguousCommands │ │ │ ├── Dependencies │ │ │ │ ├── A │ │ │ │ │ ├── Package.swift │ │ │ │ │ └── Plugins │ │ │ │ │ │ └── A.swift │ │ │ │ └── B │ │ │ │ │ ├── Package.swift │ │ │ │ │ └── Plugins │ │ │ │ │ └── B.swift │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── main.swift │ │ ├── BinaryToolProductPlugin │ │ │ ├── Dependency │ │ │ │ ├── Binaries │ │ │ │ │ └── MyVendedSourceGenBuildTool.artifactbundle │ │ │ │ │ │ ├── info.json │ │ │ │ │ │ ├── mytool-linux │ │ │ │ │ │ └── mytool │ │ │ │ │ │ └── mytool-macos │ │ │ │ │ │ └── mytool │ │ │ │ └── Package.swift │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ └── MySourceGenBuildToolPlugin │ │ │ │ │ └── plugin.swift │ │ │ └── Sources │ │ │ │ └── MyLocalTool │ │ │ │ ├── foo.dat │ │ │ │ └── main.swift │ │ ├── ClientOfPluginWithInternalExecutable │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── RootTarget │ │ │ │ ├── foo.dat │ │ │ │ └── main.swift │ │ ├── CommandPluginTestStub │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ ├── check-testability │ │ │ │ │ └── main.swift │ │ │ │ ├── diagnostics-stub │ │ │ │ │ └── diagnostics_stub.swift │ │ │ │ ├── plugin-dependencies-stub │ │ │ │ │ └── main.swift │ │ │ │ └── targetbuild-stub │ │ │ │ │ └── targetbuild_stub.swift │ │ │ ├── Sources │ │ │ │ ├── InternalModule │ │ │ │ │ └── InternalModule.swift │ │ │ │ ├── placeholder │ │ │ │ │ └── main.swift │ │ │ │ └── plugintool │ │ │ │ │ └── main.swift │ │ │ └── Tests │ │ │ │ └── InternalModuleTests │ │ │ │ └── InternalModuleTests.swift │ │ ├── ContrivedTestPlugin │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ ├── MyAmbiguouslyNamedCommandPlugin │ │ │ │ │ └── plugin.swift │ │ │ │ └── MySourceGenBuildToolPlugin │ │ │ │ │ └── plugin.swift │ │ │ └── Sources │ │ │ │ ├── MyLocalTool │ │ │ │ ├── bar.dat │ │ │ │ ├── foo.dat │ │ │ │ └── main.swift │ │ │ │ ├── MySourceGenBuildTool │ │ │ │ └── main.swift │ │ │ │ └── libpcre │ │ │ │ ├── module.modulemap │ │ │ │ └── sdk_libpcre.h │ │ ├── DependentPlugins │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ ├── MyPlugin │ │ │ │ │ └── plugin.swift │ │ │ │ └── MyPlugin2 │ │ │ │ │ └── plugin.swift │ │ │ └── Sources │ │ │ │ ├── MyClient │ │ │ │ └── client.swift │ │ │ │ ├── MyExecutable │ │ │ │ └── tool.swift │ │ │ │ └── MyExecutable2 │ │ │ │ └── tool.swift │ │ ├── IncorrectDependencies │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ └── MyPlugin │ │ │ │ │ └── MyPlugin.swift │ │ │ ├── Sources │ │ │ │ ├── MyExecutable │ │ │ │ │ └── MyExecutable.swift │ │ │ │ ├── MyLibrary │ │ │ │ │ └── Empty.swift │ │ │ │ └── MyPluginExecutable │ │ │ │ │ └── MyPluginExecutable.swift │ │ │ └── Tests │ │ │ │ └── MyExecutableTests │ │ │ │ └── MyExecutableTests.swift │ │ ├── InvalidUseOfInternalPluginExecutable │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── RootTarget │ │ │ │ ├── foo.dat │ │ │ │ └── main.swift │ │ ├── LibraryWithLocalBuildToolPluginUsingRemoteTool │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ └── MyLocalSourceGenBuildToolPlugin │ │ │ │ │ └── plugin.swift │ │ │ ├── Sources │ │ │ │ └── MyLibrary │ │ │ │ │ ├── generated.dat │ │ │ │ │ └── library.swift │ │ │ └── Tests │ │ │ │ └── MyLibraryTests │ │ │ │ └── test.swift │ │ ├── MissingPlugin │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── MissingPlugin │ │ │ │ └── MissingPlugin.swift │ │ ├── MyBinaryToolPlugin │ │ │ ├── Binaries │ │ │ │ └── MyVendedSourceGenBuildTool.artifactbundle │ │ │ │ │ ├── info.json │ │ │ │ │ ├── mytool-linux │ │ │ │ │ └── mytool │ │ │ │ │ ├── mytool-macos │ │ │ │ │ └── mytool │ │ │ │ │ └── mytool-windows │ │ │ │ │ └── mytool.bat │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ └── MySourceGenBuildToolPlugin │ │ │ │ │ └── plugin.swift │ │ │ └── Sources │ │ │ │ └── MyLocalTool │ │ │ │ ├── foo.dat │ │ │ │ └── main.swift │ │ ├── MyBuildToolPluginDependencies │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ └── MySourceGenBuildToolPlugin │ │ │ │ │ └── plugin.swift │ │ │ └── Sources │ │ │ │ ├── MyLocalTool │ │ │ │ ├── foo.dat │ │ │ │ └── main.swift │ │ │ │ ├── MySourceGenBuildTool │ │ │ │ └── main.swift │ │ │ │ └── MySourceGenBuildToolLib │ │ │ │ └── library.swift │ │ ├── MySourceGenClient │ │ │ ├── Package.swift │ │ │ ├── Sources │ │ │ │ └── MyTool │ │ │ │ │ ├── foo.dat │ │ │ │ │ └── main.swift │ │ │ └── Tests │ │ │ │ └── MyTests │ │ │ │ └── MyTests.swift │ │ ├── MySourceGenPlugin │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ ├── MySourceGenBuildToolPlugin │ │ │ │ │ └── plugin.swift │ │ │ │ └── MySourceGenPrebuildPlugin │ │ │ │ │ └── plugin.swift │ │ │ ├── Sources │ │ │ │ ├── MyLocalTool │ │ │ │ │ ├── foo.dat │ │ │ │ │ └── main.swift │ │ │ │ ├── MyOtherLocalTool │ │ │ │ │ ├── bar.dat │ │ │ │ │ ├── baz.dat │ │ │ │ │ └── main.swift │ │ │ │ ├── MySourceGenBuildTool │ │ │ │ │ └── main.swift │ │ │ │ ├── MySourceGenBuildToolLib │ │ │ │ │ └── library.swift │ │ │ │ └── MySourceGenRuntimeLib │ │ │ │ │ └── library.swift │ │ │ └── Tests │ │ │ │ └── MySourceGenPluginTests │ │ │ │ └── MySourceGenPluginTests.swift │ │ ├── MySourceGenPluginNoPreBuildCommands │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ └── MySourceGenBuildToolPlugin │ │ │ │ │ └── plugin.swift │ │ │ ├── Sources │ │ │ │ ├── MyLocalTool │ │ │ │ │ ├── foo.dat │ │ │ │ │ └── main.swift │ │ │ │ ├── MyOtherLocalTool │ │ │ │ │ ├── bar.dat │ │ │ │ │ ├── baz.dat │ │ │ │ │ └── main.swift │ │ │ │ ├── MySourceGenBuildTool │ │ │ │ │ └── main.swift │ │ │ │ ├── MySourceGenBuildToolLib │ │ │ │ │ └── library.swift │ │ │ │ └── MySourceGenRuntimeLib │ │ │ │ │ └── library.swift │ │ │ └── Tests │ │ │ │ └── MySourceGenPluginNoPreBuildCommandsTests │ │ │ │ ├── MySourceGenPluginNoPreBuildCommandsTests.swift │ │ │ │ └── lunch.txt │ │ ├── MySourceGenPluginUsingURLBasedAPI │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ ├── MySourceGenBuildToolPlugin │ │ │ │ │ └── plugin.swift │ │ │ │ └── MySourceGenPrebuildPlugin │ │ │ │ │ └── plugin.swift │ │ │ ├── Sources │ │ │ │ ├── MyLocalTool │ │ │ │ │ ├── foo.dat │ │ │ │ │ └── main.swift │ │ │ │ ├── MyOtherLocalTool │ │ │ │ │ ├── bar.dat │ │ │ │ │ ├── baz.dat │ │ │ │ │ └── main.swift │ │ │ │ ├── MySourceGenBuildTool │ │ │ │ │ └── main.swift │ │ │ │ ├── MySourceGenBuildToolLib │ │ │ │ │ └── library.swift │ │ │ │ └── MySourceGenRuntimeLib │ │ │ │ │ └── library.swift │ │ │ └── Tests │ │ │ │ └── MySourceGenPluginTests │ │ │ │ └── MySourceGenPluginTests.swift │ │ ├── PluginCanBeReferencedByProductName │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ └── MyPlugin │ │ │ │ │ └── plugin.swift │ │ │ └── Sources │ │ │ │ ├── Exec │ │ │ │ └── main.swift │ │ │ │ └── PluginCanBeReferencedByProductName │ │ │ │ └── PluginCanBeReferencedByProductName.swift │ │ ├── PluginUsingLocalAndRemoteTool │ │ │ ├── MyLibrary │ │ │ │ ├── Package.swift │ │ │ │ ├── Sources │ │ │ │ │ └── MyLibrary │ │ │ │ │ │ └── library.swift │ │ │ │ └── Tests │ │ │ │ │ └── MyLibraryTests │ │ │ │ │ └── test.swift │ │ │ ├── MyPlugin │ │ │ │ ├── Libraries │ │ │ │ │ └── LocalToolHelperLibrary │ │ │ │ │ │ └── library.swift │ │ │ │ ├── Package.swift │ │ │ │ ├── Plugins │ │ │ │ │ └── MyPlugin │ │ │ │ │ │ └── plugin.swift │ │ │ │ └── Tools │ │ │ │ │ ├── ImpliedLocalTool │ │ │ │ │ └── main.swift │ │ │ │ │ └── LocalTool │ │ │ │ │ └── main.swift │ │ │ └── RemoteTool │ │ │ │ ├── Libraries │ │ │ │ └── RemoteToolHelperLibrary │ │ │ │ │ └── library.swift │ │ │ │ ├── Package.swift │ │ │ │ └── Tools │ │ │ │ └── RemoteTool │ │ │ │ └── main.swift │ │ ├── PluginWithInternalExecutable │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ └── PluginScriptTarget │ │ │ │ │ └── Script.swift │ │ │ └── Sources │ │ │ │ └── PluginExecutable │ │ │ │ ├── Utilities.swift │ │ │ │ └── main.swift │ │ ├── PluginsAndSnippets │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ └── PluginScriptTarget │ │ │ │ │ └── Script.swift │ │ │ └── Snippets │ │ │ │ └── MySnippet.swift │ │ ├── SandboxTesterPlugin │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ └── MySourceGenBuildToolPlugin │ │ │ │ │ └── plugin.swift │ │ │ └── Sources │ │ │ │ └── MyLocalTool │ │ │ │ └── main.swift │ │ ├── SandboxViolatingBuildToolPluginCommands │ │ │ ├── MyLibrary │ │ │ │ ├── Package.swift │ │ │ │ └── Sources │ │ │ │ │ └── MyLibrary │ │ │ │ │ └── library.swift │ │ │ └── MyPlugin │ │ │ │ ├── Package.swift │ │ │ │ └── Plugins │ │ │ │ └── PackageScribblerPlugin │ │ │ │ └── plugin.swift │ │ └── TransitivePluginOnlyDependency │ │ │ ├── Dependencies │ │ │ ├── Library │ │ │ │ ├── Package.swift │ │ │ │ └── Sources │ │ │ │ │ └── Library │ │ │ │ │ └── Library.swift │ │ │ └── PluginOnly │ │ │ │ ├── Package.swift │ │ │ │ └── Plugins │ │ │ │ └── MyPlugin │ │ │ │ └── plugin.swift │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ └── TransitivePluginOnlyDependency │ │ │ └── TransitivePluginOnlyDependency.swift │ ├── RootPackageWithConditionals │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── client │ │ │ └── client.swift │ │ │ └── linuxOnly │ │ │ └── linuxOnly.swift │ ├── ShowExecutables │ │ ├── app │ │ │ ├── Package.swift │ │ │ └── main.swift │ │ └── deck-of-playing-cards │ │ │ ├── Package.swift │ │ │ └── main.swift │ ├── Simple │ │ ├── Foo.swift │ │ └── Package.swift │ ├── SkipTests │ │ ├── .gitignore │ │ ├── Package.swift │ │ ├── Sources │ │ │ └── Example │ │ │ │ └── Example.swift │ │ └── Tests │ │ │ └── ExampleTests │ │ │ ├── MoreTests.swift │ │ │ └── Tests.swift │ ├── Spaces Fixture │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── Module Name 1 │ │ │ └── Foo.swift │ │ │ └── Module Name 2 │ │ │ └── main.swift │ ├── SwiftPMXCTestHelper │ │ ├── .gitignore │ │ ├── Package.swift │ │ ├── Sources │ │ │ └── SwiftPMXCTestHelper.swift │ │ └── Tests │ │ │ ├── ObjCTests │ │ │ └── ObjCTests.m │ │ │ └── SwiftPMXCTestHelperTests │ │ │ └── SwiftPMXCTestHelperTests.swift │ ├── SwiftRun │ │ ├── Package.swift │ │ └── main.swift │ ├── SystemModules │ │ ├── CFake │ │ │ ├── Package.swift │ │ │ └── module.modulemap │ │ └── TestExec │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ └── main.swift │ ├── TargetMismatch │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Sample │ │ │ └── main.swift │ ├── TargetPackageAccess │ │ └── libPkg │ │ │ ├── Package.swift │ │ │ ├── Sources │ │ │ ├── Core │ │ │ │ └── Core.swift │ │ │ ├── DataManager │ │ │ │ └── File.swift │ │ │ ├── DataModel │ │ │ │ └── File.swift │ │ │ ├── ExampleApp │ │ │ │ └── main.swift │ │ │ └── MainLib │ │ │ │ └── Lib.swift │ │ │ └── Tests │ │ │ ├── BlackBoxTests │ │ │ └── BlackBoxTests.swift │ │ │ └── MainLibTests │ │ │ └── MainLibTests.swift │ ├── TestDiscovery │ │ ├── Async │ │ │ ├── Package.swift │ │ │ ├── Sources │ │ │ │ └── Async │ │ │ │ │ └── Async.swift │ │ │ └── Tests │ │ │ │ └── AsyncTests │ │ │ │ └── SwiftTests.swift │ │ ├── Deprecation │ │ │ ├── Package.swift │ │ │ ├── Sources │ │ │ │ └── Simple │ │ │ │ │ └── Simple.swift │ │ │ └── Tests │ │ │ │ └── SimpleTests │ │ │ │ └── SwiftTests.swift │ │ ├── Extensions │ │ │ ├── Package.swift │ │ │ ├── Sources │ │ │ │ └── Simple │ │ │ │ │ └── Simple.swift │ │ │ └── Tests │ │ │ │ └── SimpleTests │ │ │ │ ├── SwiftTests1.swift │ │ │ │ ├── SwiftTests2.swift │ │ │ │ ├── SwiftTests3.swift │ │ │ │ └── SwiftTests4.swift │ │ ├── IgnoresLinuxMain │ │ │ ├── Package.swift │ │ │ └── Tests │ │ │ │ ├── IgnoresLinuxMainTests │ │ │ │ └── SomeTest.swift │ │ │ │ └── LinuxMain.swift │ │ ├── NoTests │ │ │ ├── Package.swift │ │ │ ├── Sources │ │ │ │ └── Simple │ │ │ │ │ └── Simple.swift │ │ │ └── Tests │ │ │ │ └── SimpleTests │ │ │ │ └── SwiftTests.swift │ │ ├── Simple │ │ │ ├── Package.swift │ │ │ ├── Plugins │ │ │ │ └── SimplePlugin │ │ │ │ │ └── plugin.swift │ │ │ ├── Sources │ │ │ │ └── Simple │ │ │ │ │ └── Simple.swift │ │ │ └── Tests │ │ │ │ └── SimpleTests │ │ │ │ └── SwiftTests.swift │ │ ├── Subclass │ │ │ ├── Package.swift │ │ │ ├── Sources │ │ │ │ └── Subclass │ │ │ │ │ └── Subclass.swift │ │ │ └── Tests │ │ │ │ ├── Module1Tests │ │ │ │ ├── Tests1.swift │ │ │ │ └── Tests2.swift │ │ │ │ └── Module2Tests │ │ │ │ └── Test1.swift │ │ ├── SwiftTesting │ │ │ ├── Package.swift │ │ │ ├── Sources │ │ │ │ └── SwiftTesting │ │ │ │ │ └── SwiftTesting.swift │ │ │ └── Tests │ │ │ │ └── SwiftTestingTests │ │ │ │ └── SwiftTestingTests.swift │ │ └── hello world │ │ │ ├── Package.swift │ │ │ ├── Sources │ │ │ └── hello world │ │ │ │ └── hello world.swift │ │ │ └── Tests │ │ │ └── hello world tests │ │ │ └── hello world tests.swift │ ├── TestMultipleFailureSwiftTesting │ │ ├── Package.swift │ │ └── Tests │ │ │ └── TestMultipleFailureSwiftTestingTests │ │ │ └── TestMultipleFailureSwiftTestingTests.swift │ ├── TestMultipleFailureXCTest │ │ ├── Package.swift │ │ └── Tests │ │ │ └── TestMultipleFailureXCTestTests │ │ │ └── TestMultipleFailureXCTestTests.swift │ ├── TestSingleFailureSwiftTesting │ │ ├── Package.swift │ │ └── Tests │ │ │ └── TestFailuresSwiftTestingTests │ │ │ └── TestFailuresSwiftTestingTests.swift │ ├── TestSingleFailureXCTest │ │ ├── Package.swift │ │ └── Tests │ │ │ └── TestFailuresTests │ │ │ └── TestFailuresTests.swift │ ├── TestableAsyncExe │ │ ├── Package.swift │ │ ├── Sources │ │ │ ├── TestableAsyncExe1 │ │ │ │ └── main.swift │ │ │ ├── TestableAsyncExe2 │ │ │ │ └── main.swift │ │ │ ├── TestableAsyncExe3 │ │ │ │ └── NonMain.swift │ │ │ └── TestableAsyncExe4 │ │ │ │ └── NonMain.swift │ │ └── Tests │ │ │ └── TestableAsyncExeTests │ │ │ └── TestableAsyncExeTests.swift │ ├── TestableExe │ │ ├── Package.swift │ │ ├── Sources │ │ │ ├── TestableExe1 │ │ │ │ └── main.swift │ │ │ ├── TestableExe2 │ │ │ │ └── main.swift │ │ │ └── TestableExe3 │ │ │ │ ├── include │ │ │ │ └── TestableExe3.h │ │ │ │ └── main.c │ │ └── Tests │ │ │ └── TestableExeTests │ │ │ └── TestableExeTests.swift │ ├── Unicode │ │ ├── Package.swift │ │ ├── README.md │ │ ├── Sources │ │ │ ├── πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄ │ │ │ │ └── πשּׁµ𝄞🇺🇳x̱̱̱̱̱̄̄̄̄̄.swift │ │ │ └── πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄‐tool │ │ │ │ └── main.swift │ │ ├── Tests │ │ │ ├── LinuxMain.swift │ │ │ └── πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄Tests │ │ │ │ ├── XCTestManifests.swift │ │ │ │ └── πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄Tests.swift │ │ └── Utilities │ │ │ └── SomeOtherPackage │ │ │ ├── Package.swift │ │ │ ├── README.md │ │ │ └── Sources │ │ │ └── SomeOtherPackage │ │ │ └── main.swift │ ├── UnicodeDependency‐πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄ │ │ ├── Package.swift │ │ ├── README.md │ │ └── Sources │ │ │ └── UnicodeDependency‐πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄ │ │ │ └── UnicodeDependency‐πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄.swift │ └── UnreachableTargets │ │ ├── A │ │ ├── Package.swift │ │ └── Sources │ │ │ └── ATarget │ │ │ └── main.swift │ │ ├── B │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── BTarget1 │ │ │ └── BTarget1.swift │ │ │ └── BTarget2 │ │ │ └── main.swift │ │ └── C │ │ ├── Package.swift │ │ └── Sources │ │ └── CTarget │ │ └── main.swift ├── ModuleAliasing │ ├── DirectDeps1 │ │ ├── AppPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── App │ │ │ │ └── main.swift │ │ │ │ └── Utils │ │ │ │ └── FileUtils.swift │ │ └── UtilsPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ └── Utils │ │ │ └── FileUtils.swift │ ├── DirectDeps2 │ │ ├── Apkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── AApp │ │ │ │ └── main.swift │ │ │ │ └── Utils │ │ │ │ └── File.swift │ │ ├── AppPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── App │ │ │ │ └── main.swift │ │ └── Bpkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ └── Utils │ │ │ └── File.swift │ ├── NestedDeps1 │ │ ├── APkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── A │ │ │ │ └── File.swift │ │ ├── AppPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── App │ │ │ │ └── main.swift │ │ ├── BPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── Utils │ │ │ │ └── File.swift │ │ ├── CPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── Utils │ │ │ │ └── File.swift │ │ ├── XPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── Utils │ │ │ │ └── File.swift │ │ │ │ └── X │ │ │ │ └── File.swift │ │ └── YPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ └── Utils │ │ │ └── File.swift │ └── NestedDeps2 │ │ ├── Apkg │ │ ├── Package.swift │ │ └── Sources │ │ │ └── A │ │ │ └── File.swift │ │ ├── AppPkg │ │ ├── Package.swift │ │ └── Sources │ │ │ └── App │ │ │ └── main.swift │ │ ├── Bpkg │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Utils │ │ │ └── File.swift │ │ ├── Cpkg │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Utils │ │ │ └── File.swift │ │ └── Xpkg │ │ ├── Package.swift │ │ └── Sources │ │ └── Utils │ │ └── File.swift ├── ModuleMaps │ ├── Direct │ │ ├── App │ │ │ ├── Package.swift │ │ │ └── main.swift │ │ └── CFoo │ │ │ ├── C │ │ │ ├── foo.c │ │ │ └── foo.h │ │ │ ├── Package.swift │ │ │ └── module.modulemap │ └── Transitive │ │ ├── packageA │ │ ├── Package.swift │ │ └── Sources │ │ │ └── main.swift │ │ ├── packageB │ │ ├── .gitignore │ │ ├── Package.swift │ │ └── Sources │ │ │ └── y │ │ │ └── y.swift │ │ ├── packageC │ │ ├── .gitignore │ │ ├── Package.swift │ │ └── Sources │ │ │ └── x │ │ │ └── x.swift │ │ └── packageD ├── Resources │ ├── EmbedInCodeSimple │ │ ├── Package.swift │ │ └── Sources │ │ │ └── EmbedInCodeSimple │ │ │ ├── best.txt │ │ │ └── main.swift │ ├── FoundationlessClient │ │ ├── AppPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── App │ │ │ │ └── main.swift │ │ ├── UtilsPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── Utils │ │ │ │ ├── FooUtils.swift │ │ │ │ └── foo.txt │ │ └── UtilsWithFoundationPkg │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ └── UtilsWithFoundationPkg │ │ │ ├── FooUtils.swift │ │ │ └── foo.txt │ ├── Localized │ │ ├── Package.swift │ │ └── Sources │ │ │ └── exe │ │ │ ├── Resources │ │ │ ├── de.lproj │ │ │ │ └── Localizable.strings │ │ │ ├── es.lproj │ │ │ │ └── Localizable.strings │ │ │ └── fr.lproj │ │ │ │ └── Localizable.strings │ │ │ └── main.swift │ ├── Moved │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── SeaResource │ │ │ ├── foo.txt │ │ │ └── main.m │ │ │ └── SwiftyResource │ │ │ ├── foo.txt │ │ │ └── main.swift │ └── Simple │ │ ├── Package.swift │ │ ├── Sources │ │ ├── CPPResource │ │ │ ├── foo.txt │ │ │ └── main.mm │ │ ├── ClangResource │ │ │ ├── Package.m │ │ │ ├── foo.txt │ │ │ └── include │ │ │ │ └── Package.h │ │ ├── MixedClangResource │ │ │ ├── Foo.m │ │ │ ├── bar.c │ │ │ ├── bar.h │ │ │ ├── baz.S │ │ │ ├── foo.txt │ │ │ ├── include │ │ │ │ └── Foo.h │ │ │ └── qux.cpp │ │ ├── SeaResource │ │ │ ├── foo.txt │ │ │ └── main.m │ │ └── SwiftyResource │ │ │ ├── foo.txt │ │ │ └── main.swift │ │ └── Tests │ │ └── ClangResourceTests │ │ └── ClangResourceTests.m ├── Signing │ └── Certificates │ │ ├── TestIntermediateCA.cer │ │ ├── TestRootCA.cer │ │ ├── Test_ec.cer │ │ ├── Test_ec_key.p8 │ │ ├── Test_ec_key.pem │ │ ├── Test_ec_self_signed.cer │ │ ├── Test_ec_self_signed_key.p8 │ │ ├── Test_rsa.cer │ │ ├── Test_rsa_key.p8 │ │ ├── Test_rsa_key.pem │ │ ├── Test_rsa_self_signed.cer │ │ └── Test_rsa_self_signed_key.p8 ├── SwiftMigrate │ ├── ExistentialAnyMigration │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── Fixed │ │ │ └── Test.swift │ │ │ └── Test.swift │ ├── InferIsolatedConformancesMigration │ │ ├── Package.swift │ │ └── Sources │ │ │ ├── Fixed │ │ │ └── Test.swift │ │ │ └── Test.swift │ └── StrictMemorySafetyMigration │ │ ├── Package.swift │ │ └── Sources │ │ ├── Fixed │ │ └── Test.swift │ │ └── Test.swift ├── SwiftSDKs │ ├── Package.swift │ ├── test-sdk.artifactbundle.tar.gz │ └── test-sdk.artifactbundle.zip ├── Traits │ ├── DisablingEmptyDefaultsExample │ │ ├── Package.swift │ │ └── Sources │ │ │ └── DisablingEmptyDefaultsExample │ │ │ └── Example.swift │ ├── Example │ │ ├── Package.swift │ │ ├── Sources │ │ │ └── Example │ │ │ │ └── Example.swift │ │ └── Tests │ │ │ └── ExampleTests │ │ │ └── Tests.swift │ ├── Package1 │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Package1Library1 │ │ │ └── Library.swift │ ├── Package10 │ │ ├── Package.swift │ │ ├── Plugins │ │ │ └── SymbolGraphExtract │ │ │ │ └── Plugin.swift │ │ └── Sources │ │ │ └── Package10Library1 │ │ │ └── Library.swift │ ├── Package11 │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Package11Library1 │ │ │ └── Library.swift │ ├── Package2 │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Package2Library1 │ │ │ └── Library.swift │ ├── Package3 │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Package3Library1 │ │ │ └── Library.swift │ ├── Package4 │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Package4Library1 │ │ │ └── Library.swift │ ├── Package5 │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Package5Library1 │ │ │ └── Library.swift │ ├── Package6 │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Package6Library1 │ │ │ └── Library.swift │ ├── Package7 │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Package7Library1 │ │ │ └── Library.swift │ ├── Package8 │ │ ├── Package.swift │ │ └── Sources │ │ │ └── Package6Library1 │ │ │ └── Library.swift │ └── Package9 │ │ ├── Package.swift │ │ └── Sources │ │ └── Package9Library1 │ │ └── Library.swift └── ValidLayouts │ └── SingleModule │ ├── ExecutableMixed │ ├── .gitignore │ ├── Package.swift │ ├── README.md │ └── Sources │ │ ├── ExecutableC │ │ └── c.c │ │ ├── ExecutableCxx │ │ └── cxx.cpp │ │ └── ExecutableSwift │ │ └── main.swift │ ├── ExecutableNew │ ├── .gitignore │ ├── Package.swift │ ├── README.md │ └── Sources │ │ └── ExecutableNew │ │ └── main.swift │ └── Library │ ├── Package.swift │ └── Sources │ └── Library │ └── Foo.swift ├── IntegrationTests ├── Fixtures │ ├── BinaryTargets │ │ ├── Inputs │ │ │ ├── DynamicLibrary │ │ │ │ ├── DynamicLibrary.m │ │ │ │ └── include │ │ │ │ │ └── DynamicLibrary.h │ │ │ ├── StaticLibrary │ │ │ │ ├── StaticLibrary.m │ │ │ │ └── include │ │ │ │ │ └── StaticLibrary.h │ │ │ └── SwiftFramework │ │ │ │ ├── SwiftFramework.xcodeproj │ │ │ │ ├── project.pbxproj │ │ │ │ └── project.xcworkspace │ │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ │ └── xcshareddata │ │ │ │ │ └── IDEWorkspaceChecks.plist │ │ │ │ └── SwiftFramework │ │ │ │ ├── Info.plist │ │ │ │ ├── SwiftFramework.h │ │ │ │ └── SwiftFramework.swift │ │ └── TestBinary │ │ │ ├── Package.swift │ │ │ ├── Sources │ │ │ ├── CLibrary │ │ │ │ ├── CLibrary.m │ │ │ │ └── include │ │ │ │ │ └── CLibrary.h │ │ │ ├── Library │ │ │ │ └── Library.swift │ │ │ ├── cexe │ │ │ │ └── main.m │ │ │ └── exe │ │ │ │ └── main.swift │ │ │ └── SwiftFramework.zip │ └── XCBuild │ │ ├── ExecutableProducts │ │ ├── Bar │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── BarLib │ │ │ │ └── BarLib.swift │ │ │ │ ├── bar │ │ │ │ └── main.swift │ │ │ │ └── cbar │ │ │ │ └── main.c │ │ └── Foo │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ ├── FooLib │ │ │ └── FooLib.swift │ │ │ ├── cfoo │ │ │ └── main.c │ │ │ └── foo │ │ │ └── main.swift │ │ ├── Libraries │ │ ├── Bar │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ └── BarLib │ │ │ │ └── BarLib.swift │ │ └── Foo │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ ├── CFooLib │ │ │ ├── CFooLib.m │ │ │ └── include │ │ │ │ └── CFooLib.h │ │ │ └── FooLib │ │ │ └── FooLib.swift │ │ ├── SystemTargets │ │ ├── Foo │ │ │ ├── Package.swift │ │ │ └── Sources │ │ │ │ ├── SystemLib │ │ │ │ └── module.modulemap │ │ │ │ └── foo │ │ │ │ └── main.swift │ │ └── Inputs │ │ │ ├── libsys.c │ │ │ ├── libsys.h │ │ │ └── libsys.pc │ │ └── TestProducts │ │ ├── Bar │ │ ├── Package.swift │ │ └── Sources │ │ │ └── BarLib │ │ │ ├── BarLib.m │ │ │ └── include │ │ │ └── BarLib.h │ │ └── Foo │ │ ├── Package.swift │ │ ├── Sources │ │ └── FooLib │ │ │ └── FooLib.swift │ │ └── Tests │ │ ├── CFooTests │ │ └── tests.m │ │ └── FooTests │ │ └── FooTests.swift ├── Package.swift ├── README.md ├── Sources │ └── IntegrationTestSupport │ │ ├── Filesystem.swift │ │ ├── Helpers.swift │ │ ├── Process.swift │ │ ├── SkippedTestSupport.swift │ │ └── StringChecker.swift └── Tests │ └── IntegrationTests │ ├── BasicTests.swift │ ├── SwiftPMTests.swift │ └── XCBuildTests.swift ├── LICENSE.txt ├── NOTICE.txt ├── Package.swift ├── README.md ├── Sources ├── AppleProductTypes │ └── Product.swift ├── Basics │ ├── Archiver │ │ ├── Archiver.swift │ │ ├── TarArchiver.swift │ │ ├── UniversalArchiver.swift │ │ └── ZipArchiver.swift │ ├── AuthorizationProvider.swift │ ├── CMakeLists.txt │ ├── Cancellator.swift │ ├── Collections │ │ ├── ByteString+Extensions.swift │ │ ├── Dictionary+Extensions.swift │ │ ├── IdentifiableSet.swift │ │ └── String+Extensions.swift │ ├── Concurrency │ │ ├── AsyncProcess.swift │ │ ├── ConcurrencyHelpers.swift │ │ ├── NSLock+Extensions.swift │ │ ├── SendableBox.swift │ │ ├── ThreadSafeArrayStore.swift │ │ ├── ThreadSafeBox.swift │ │ ├── ThreadSafeKeyValueStore.swift │ │ ├── ThrowingDefer.swift │ │ └── TokenBucket.swift │ ├── DispatchTimeInterval+Extensions.swift │ ├── Environment │ │ ├── Environment.swift │ │ ├── EnvironmentKey.swift │ │ └── EnvironmentShims.swift │ ├── Errors.swift │ ├── FileSystem │ │ ├── AbsolutePath.swift │ │ ├── FileSystem+Extensions.swift │ │ ├── InMemoryFileSystem.swift │ │ ├── NativePathExtensions.swift │ │ ├── RelativePath.swift │ │ ├── TSCAdapters.swift │ │ ├── TemporaryFile.swift │ │ ├── VFSOverlay.swift │ │ └── VirtualFileSystem.swift │ ├── Graph │ │ ├── AdjacencyMatrix.swift │ │ ├── DirectedGraph.swift │ │ ├── GraphAlgorithms.swift │ │ └── UndirectedGraph.swift │ ├── HTTPClient │ │ ├── HTTPClient.swift │ │ ├── HTTPClientConfiguration.swift │ │ ├── HTTPClientError.swift │ │ ├── HTTPClientHeaders.swift │ │ ├── HTTPClientRequest.swift │ │ ├── HTTPClientResponse.swift │ │ ├── HTTPMethod.swift │ │ ├── LegacyHTTPClient.swift │ │ ├── LegacyHTTPClientRequest.swift │ │ └── URLSessionHTTPClient.swift │ ├── ImportScanning.swift │ ├── JSON+Extensions.swift │ ├── JSONDecoder+Extensions.swift │ ├── Netrc.swift │ ├── OSSignpost.swift │ ├── Observability.swift │ ├── Process.swift │ ├── ProgressAnimation │ │ ├── NinjaProgressAnimation.swift │ │ ├── PercentProgressAnimation.swift │ │ ├── ProgressAnimationProtocol.swift │ │ ├── SingleLinePercentProgressAnimation.swift │ │ └── ThrottledProgressAnimation.swift │ ├── SQLite.swift │ ├── SQLiteBackedCache.swift │ ├── Sandbox.swift │ ├── SendableTimeInterval.swift │ ├── Serialization │ │ └── SerializedJSON.swift │ ├── SourceControlURL.swift │ ├── SwiftVersion.swift │ ├── TestingLibrary.swift │ ├── Triple+Basics.swift │ ├── URL.swift │ ├── Vendor │ │ ├── README.md │ │ ├── Triple+Platforms.swift │ │ └── Triple.swift │ ├── Version+Extensions.swift │ └── WritableByteStream+Extensions.swift ├── Build │ ├── BuildDescription │ │ ├── ClangModuleBuildDescription.swift │ │ ├── ModuleBuildDescription.swift │ │ ├── PluginBuildDescription.swift │ │ ├── ProductBuildDescription.swift │ │ ├── ResolvedModule+BuildDescription.swift │ │ └── SwiftModuleBuildDescription.swift │ ├── BuildManifest │ │ ├── LLBuildManifestBuilder+Clang.swift │ │ ├── LLBuildManifestBuilder+Product.swift │ │ ├── LLBuildManifestBuilder+Resources.swift │ │ ├── LLBuildManifestBuilder+Swift.swift │ │ └── LLBuildManifestBuilder.swift │ ├── BuildOperation.swift │ ├── BuildPlan │ │ ├── BuildPlan+Clang.swift │ │ ├── BuildPlan+Product.swift │ │ ├── BuildPlan+Swift.swift │ │ ├── BuildPlan+Test.swift │ │ └── BuildPlan.swift │ ├── CMakeLists.txt │ ├── ClangSupport.swift │ ├── LLBuildCommands.swift │ ├── LLBuildDescription.swift │ ├── LLBuildProgressTracker.swift │ ├── SwiftCompilerOutputParser.swift │ └── TestObservation.swift ├── CMakeLists.txt ├── Commands │ ├── CMakeLists.txt │ ├── CommandWorkspaceDelegate.swift │ ├── PackageCommands │ │ ├── APIDiff.swift │ │ ├── AddDependency.swift │ │ ├── AddProduct.swift │ │ ├── AddSetting.swift │ │ ├── AddTarget.swift │ │ ├── AddTargetDependency.swift │ │ ├── ArchiveSource.swift │ │ ├── CompletionCommand.swift │ │ ├── ComputeChecksum.swift │ │ ├── Config.swift │ │ ├── Describe.swift │ │ ├── DumpCommands.swift │ │ ├── EditCommands.swift │ │ ├── Format.swift │ │ ├── Init.swift │ │ ├── Install.swift │ │ ├── Learn.swift │ │ ├── Migrate.swift │ │ ├── PluginCommand.swift │ │ ├── ResetCommands.swift │ │ ├── Resolve.swift │ │ ├── ShowDependencies.swift │ │ ├── ShowExecutables.swift │ │ ├── SwiftPackageCommand.swift │ │ ├── ToolsVersionCommand.swift │ │ └── Update.swift │ ├── README.md │ ├── Snippets │ │ ├── Card.swift │ │ ├── CardEvent.swift │ │ ├── CardStack.swift │ │ ├── Cards │ │ │ ├── SnippetCard.swift │ │ │ ├── SnippetGroupCard.swift │ │ │ └── TopCard.swift │ │ └── Colorful.swift │ ├── SwiftBuildCommand.swift │ ├── SwiftRunCommand.swift │ ├── SwiftTestCommand.swift │ └── Utilities │ │ ├── APIDigester.swift │ │ ├── DOTManifestSerializer.swift │ │ ├── DependenciesSerializer.swift │ │ ├── DescribedPackage.swift │ │ ├── MermaidPackageSerializer.swift │ │ ├── MultiRootSupport.swift │ │ ├── PlainTextEncoder.swift │ │ ├── PluginDelegate.swift │ │ ├── SymbolGraphExtract.swift │ │ ├── TestingSupport.swift │ │ └── XCTEvents.swift ├── CompilerPluginSupport │ ├── CMakeLists.txt │ └── TargetExtensions.swift ├── CoreCommands │ ├── BuildSystemSupport.swift │ ├── CMakeLists.txt │ ├── Options.swift │ ├── SwiftCommandObservabilityHandler.swift │ └── SwiftCommandState.swift ├── DriverSupport │ ├── CMakeLists.txt │ ├── DriverSupportUtils.swift │ └── SPMSwiftDriverExecutor.swift ├── LLBuildManifest │ ├── CMakeLists.txt │ ├── Command.swift │ ├── LLBuildManifest.swift │ ├── LLBuildManifestWriter.swift │ ├── Node.swift │ ├── Target.swift │ └── Tools.swift ├── PackageCollections │ ├── API.swift │ ├── Model │ │ ├── CVE.swift │ │ ├── Collection.swift │ │ ├── License.swift │ │ ├── PackageList.swift │ │ ├── PackageTypes.swift │ │ ├── Search.swift │ │ └── TargetListResult.swift │ ├── PackageCollections+CertificatePolicy.swift │ ├── PackageCollections+Configuration.swift │ ├── PackageCollections+Storage.swift │ ├── PackageCollections+Validation.swift │ ├── PackageCollections.swift │ ├── PackageIndex+Configuration.swift │ ├── PackageIndex.swift │ ├── PackageIndexAndCollections.swift │ ├── Providers │ │ ├── GitHubPackageMetadataProvider.swift │ │ ├── JSONPackageCollectionProvider.swift │ │ ├── PackageCollectionProvider.swift │ │ └── PackageMetadataProvider.swift │ ├── Storage │ │ ├── FilePackageCollectionsSourcesStorage.swift │ │ ├── PackageCollectionsSourcesStorage.swift │ │ ├── PackageCollectionsStorage.swift │ │ ├── SQLitePackageCollectionsStorage.swift │ │ └── Trie.swift │ └── Utility.swift ├── PackageCollectionsCommand │ └── PackageCollectionsCommand.swift ├── PackageCollectionsModel │ ├── Formats │ │ └── v1.md │ ├── PackageCollectionModel+v1.swift │ └── PackageCollectionModel.swift ├── PackageCollectionsSigning │ ├── CertificatePolicy.swift │ ├── PackageCollectionSigning.swift │ ├── Signature.swift │ ├── Utilities │ │ ├── Base64URL.swift │ │ └── Utilities.swift │ ├── X509Extensions.swift │ └── embedded_resources.swift ├── PackageDescription │ ├── BuildSettings.swift │ ├── CMakeLists.txt │ ├── Context.swift │ ├── ContextModel.swift │ ├── LanguageStandardSettings.swift │ ├── PackageDependency.swift │ ├── PackageDependencyTrait.swift │ ├── PackageDescription.docc │ │ ├── Curation │ │ │ ├── BuildConfiguration.md │ │ │ ├── BuildSettingCondition.md │ │ │ ├── CLanguageStandard.md │ │ │ ├── CSetting.md │ │ │ ├── CXXLanguageStandard.md │ │ │ ├── CXXSetting.md │ │ │ ├── Dependency.md │ │ │ ├── Extensions │ │ │ │ ├── CLanguageStandard-hash.md │ │ │ │ ├── CLanguageStandard-hashValue.md │ │ │ │ ├── CLanguageStandard-notEqual.md │ │ │ │ ├── CXXLanguageStandard-hash.md │ │ │ │ ├── CXXLanguageStandard-hashValue.md │ │ │ │ ├── CXXLanguageStandard-notEqual.md │ │ │ │ ├── LanguageTag-hash.md │ │ │ │ ├── LanguageTag-hashValue.md │ │ │ │ ├── LanguageTag-initRawValue.md │ │ │ │ ├── LanguageTag-notEqual.md │ │ │ │ ├── LanguageTag-rawValue.md │ │ │ │ ├── Library-LibraryType-hash.md │ │ │ │ ├── Library-LibraryType-hashValue.md │ │ │ │ ├── Library-LibraryType-initRawValue.md │ │ │ │ ├── Library-LibraryType-notEqual.md │ │ │ │ ├── Library-LibraryType.md │ │ │ │ ├── Product-Executable.md │ │ │ │ ├── Resource-Localization-hash.md │ │ │ │ ├── Resource-Localization-hashValue.md │ │ │ │ ├── Resource-Localization-notEqual.md │ │ │ │ ├── Target-TargetType-hash.md │ │ │ │ ├── Target-TargetType-hashValue.md │ │ │ │ └── Target-TargetType-notEqual.md │ │ │ ├── LanguageTag.md │ │ │ ├── Library.md │ │ │ ├── LinkerSetting.md │ │ │ ├── Package.md │ │ │ ├── Platform-notEqual.md │ │ │ ├── Platform.md │ │ │ ├── Plugin.md │ │ │ ├── PluginCapability.md │ │ │ ├── PluginCommandIntent.md │ │ │ ├── PluginPermission.md │ │ │ ├── PluginUsage.md │ │ │ ├── Product.md │ │ │ ├── Resource-Localization.md │ │ │ ├── Resource.md │ │ │ ├── SupportedPlatforms-notEqual.md │ │ │ ├── SupportedPlatforms.md │ │ │ ├── SwiftLanguageMode.md │ │ │ ├── SwiftSetting.md │ │ │ ├── SystemPackageProvider.md │ │ │ ├── Target-Dependency.md │ │ │ ├── Target-TargetDependencyCondition.md │ │ │ ├── Target-TargetType.md │ │ │ ├── Target.md │ │ │ └── Version.md │ │ ├── Info.plist │ │ └── PackageDescription.md │ ├── PackageDescription.swift │ ├── PackageDescriptionSerialization.swift │ ├── PackageDescriptionSerializationConversion.swift │ ├── PackageRequirement.swift │ ├── Product.swift │ ├── Resource.swift │ ├── SupportedPlatforms.swift │ ├── Target.swift │ ├── Trait.swift │ ├── Version+StringLiteralConvertible.swift │ └── Version.swift ├── PackageFingerprint │ ├── CMakeLists.txt │ ├── FilePackageFingerprintStorage.swift │ ├── Model.swift │ └── PackageFingerprintStorage.swift ├── PackageGraph │ ├── BoundVersion.swift │ ├── CMakeLists.txt │ ├── DependencyMirrors.swift │ ├── Diagnostics.swift │ ├── GraphLoadingNode.swift │ ├── ModuleAliasTracker.swift │ ├── ModulesGraph+Loading.swift │ ├── ModulesGraph.swift │ ├── PackageContainer.swift │ ├── PackageGraphRoot.swift │ ├── PackageModel+Extensions.swift │ ├── PackageRequirement.swift │ ├── README.md │ ├── Resolution │ │ ├── DependencyResolutionNode.swift │ │ ├── DependencyResolverBinding.swift │ │ ├── DependencyResolverDelegate.swift │ │ ├── DependencyResolverError.swift │ │ ├── PlatformVersionProvider.swift │ │ ├── PubGrub │ │ │ ├── Assignment.swift │ │ │ ├── ContainerProvider.swift │ │ │ ├── DiagnosticReportBuilder.swift │ │ │ ├── Incompatibility.swift │ │ │ ├── PartialSolution.swift │ │ │ ├── PubGrubDependencyResolver.swift │ │ │ ├── PubGrubPackageContainer.swift │ │ │ └── Term.swift │ │ ├── ResolvedModule.swift │ │ ├── ResolvedPackage.swift │ │ └── ResolvedProduct.swift │ ├── ResolvedPackagesStore.swift │ ├── Version+Extensions.swift │ └── VersionSetSpecifier.swift ├── PackageLoading │ ├── CMakeLists.txt │ ├── ContextModel.swift │ ├── Diagnostics.swift │ ├── ManifestJSONParser.swift │ ├── ManifestLoader+Validation.swift │ ├── ManifestLoader.swift │ ├── ManifestSignatureParser.swift │ ├── ModuleMapGenerator.swift │ ├── PackageBuilder.swift │ ├── PackageDescriptionSerialization.swift │ ├── PkgConfig.swift │ ├── Platform.swift │ ├── README.md │ ├── RegistryReleaseMetadataSerialization.swift │ ├── Target+PkgConfig.swift │ ├── TargetSourcesBuilder.swift │ └── ToolsVersionParser.swift ├── PackageManagerDocs │ ├── Documentation.docc │ │ ├── AddingDependencies.md │ │ ├── Assets │ │ │ ├── command-icon.svg │ │ │ └── command-icon~dark.svg │ │ ├── CreatingCLanguageTargets.md │ │ ├── Dependencies │ │ │ ├── AddingSystemLibraryDependency.md │ │ │ ├── ExampleSystemLibraryPkgConfig.md │ │ │ └── ResolvingDependencyFailures.md │ │ ├── Documentation.md │ │ ├── GettingStarted.md │ │ ├── IntroducingPackages.md │ │ ├── Package │ │ │ ├── PackageAddDependency.md │ │ │ ├── PackageAddProduct.md │ │ │ ├── PackageAddSetting.md │ │ │ ├── PackageAddTarget.md │ │ │ ├── PackageAddTargetDependency.md │ │ │ ├── PackageArchiveSource.md │ │ │ ├── PackageClean.md │ │ │ ├── PackageCompletionTool.md │ │ │ ├── PackageComputeChecksum.md │ │ │ ├── PackageConfigGetMirror.md │ │ │ ├── PackageConfigSetMirror.md │ │ │ ├── PackageConfigUnsetMirror.md │ │ │ ├── PackageDescribe.md │ │ │ ├── PackageDiagnoseAPIBreakingChange.md │ │ │ ├── PackageDumpPackage.md │ │ │ ├── PackageDumpSymbolGraph.md │ │ │ ├── PackageEdit.md │ │ │ ├── PackageExperimentalInstall.md │ │ │ ├── PackageExperimentalUninstall.md │ │ │ ├── PackageInit.md │ │ │ ├── PackageMigrate.md │ │ │ ├── PackagePlugin.md │ │ │ ├── PackagePurgeCache.md │ │ │ ├── PackageReset.md │ │ │ ├── PackageResolve.md │ │ │ ├── PackageShowDependencies.md │ │ │ ├── PackageShowExecutables.md │ │ │ ├── PackageToolsVersion.md │ │ │ ├── PackageUnedit.md │ │ │ └── PackageUpdate.md │ │ ├── PackageCollections │ │ │ ├── PackageCollectionAdd.md │ │ │ ├── PackageCollectionDescribe.md │ │ │ ├── PackageCollectionList.md │ │ │ ├── PackageCollectionRefresh.md │ │ │ ├── PackageCollectionRemove.md │ │ │ └── PackageCollectionSearch.md │ │ ├── PackageDescription.md │ │ ├── PackageRegistry │ │ │ ├── PackageRegistryLogin.md │ │ │ ├── PackageRegistryLogout.md │ │ │ ├── PackageRegistryPublish.md │ │ │ ├── PackageRegistrySet.md │ │ │ └── PackageRegistryUnset.md │ │ ├── PackageSecurity.md │ │ ├── ResolvingPackageVersions.md │ │ ├── SDK │ │ │ ├── SDKConfigurationSet.md │ │ │ ├── SDKConfigurationShow.md │ │ │ ├── SDKConfigure.md │ │ │ ├── SDKInstall.md │ │ │ ├── SDKList.md │ │ │ └── SDKRemove.md │ │ ├── SwiftBuild.md │ │ ├── SwiftPMAsALibrary.md │ │ ├── SwiftPackageCollectionCommands.md │ │ ├── SwiftPackageCommands.md │ │ ├── SwiftPackageRegistryCommands.md │ │ ├── SwiftRun.md │ │ ├── SwiftSDKCommands.md │ │ └── SwiftTest.md │ ├── EmptyFile.swift │ └── README.md ├── PackageMetadata │ └── PackageMetadata.swift ├── PackageModel │ ├── ArtifactsArchiveMetadata.swift │ ├── BuildConfiguration.swift │ ├── BuildEnvironment.swift │ ├── BuildFlags.swift │ ├── BuildSettings.swift │ ├── CMakeLists.txt │ ├── DependencyMapper.swift │ ├── Diagnostics.swift │ ├── IdentityResolver.swift │ ├── InstalledSwiftPMConfiguration.swift │ ├── Manifest │ │ ├── Manifest+Traits.swift │ │ ├── Manifest.swift │ │ ├── PackageConditionDescription.swift │ │ ├── PackageDependencyDescription.swift │ │ ├── PlatformDescription.swift │ │ ├── ProductDescription.swift │ │ ├── SystemPackageProviderDescription.swift │ │ ├── TargetBuildSettingDescription.swift │ │ ├── TargetDescription.swift │ │ ├── TraitConfiguration.swift │ │ └── TraitDescription.swift │ ├── ManifestSourceGeneration.swift │ ├── MinimumDeploymentTarget.swift │ ├── Module │ │ ├── BinaryModule.swift │ │ ├── ClangModule.swift │ │ ├── Module.swift │ │ ├── PluginModule.swift │ │ ├── SwiftModule.swift │ │ └── SystemLibraryModule.swift │ ├── ModuleMapType.swift │ ├── PackageIdentity.swift │ ├── PackageModel.swift │ ├── PackageReference.swift │ ├── Platform.swift │ ├── PlatformRegistry.swift │ ├── Product.swift │ ├── README.md │ ├── Registry.swift │ ├── RegistryReleaseMetadata.swift │ ├── Resource.swift │ ├── Sanitizers.swift │ ├── Snippets │ │ ├── Model │ │ │ ├── Snippet.swift │ │ │ └── SnippetGroup.swift │ │ └── Parsing │ │ │ └── PlainTextSnippetExtractor.swift │ ├── Sources.swift │ ├── SupportedLanguageExtension.swift │ ├── SwiftLanguageVersion.swift │ ├── SwiftSDKs │ │ ├── SwiftSDK.swift │ │ ├── SwiftSDKBundle.swift │ │ ├── SwiftSDKBundleStore.swift │ │ └── SwiftSDKConfigurationStore.swift │ ├── Toolchain+SupportedFeatures.swift │ ├── Toolchain.swift │ ├── ToolchainConfiguration.swift │ ├── ToolsVersion.swift │ ├── ToolsVersionSpecificationGeneration.swift │ ├── Toolset.swift │ ├── UserToolchain.swift │ └── WindowsToolchainInfo.swift ├── PackageModelSyntax │ ├── AddPackageDependency.swift │ ├── AddProduct.swift │ ├── AddSwiftSetting.swift │ ├── AddTarget.swift │ ├── AddTargetDependency.swift │ ├── CMakeLists.txt │ ├── ManifestEditError.swift │ ├── ManifestSyntaxRepresentable.swift │ ├── PackageDependency+Syntax.swift │ ├── PackageEditResult.swift │ ├── ProductDescription+Syntax.swift │ ├── SyntaxEditUtils.swift │ └── TargetDescription+Syntax.swift ├── PackagePlugin │ ├── ArgumentExtractor.swift │ ├── CMakeLists.txt │ ├── Command.swift │ ├── Context.swift │ ├── Diagnostics.swift │ ├── Errors.swift │ ├── PackageManagerProxy.swift │ ├── PackageModel.swift │ ├── Path.swift │ ├── Plugin.swift │ ├── PluginContextDeserializer.swift │ ├── PluginMessages.swift │ ├── Protocols.swift │ └── Utilities.swift ├── PackageRegistry │ ├── CMakeLists.txt │ ├── ChecksumTOFU.swift │ ├── RegistryClient.swift │ ├── RegistryConfiguration.swift │ ├── RegistryDownloadsManager.swift │ ├── SignatureValidation.swift │ └── SigningEntityTOFU.swift ├── PackageRegistryCommand │ ├── PackageRegistryCommand+Auth.swift │ ├── PackageRegistryCommand+Publish.swift │ └── PackageRegistryCommand.swift ├── PackageSigning │ ├── CMakeLists.txt │ ├── CertificateStores.swift │ ├── SignatureProvider.swift │ ├── SigningEntity │ │ ├── FilePackageSigningEntityStorage.swift │ │ ├── PackageSigningEntityStorage.swift │ │ └── SigningEntity.swift │ ├── SigningIdentity.swift │ ├── VerifierPolicies.swift │ ├── X509Extensions.swift │ └── embedded_resources.swift ├── QueryEngine │ ├── CacheKey.swift │ ├── FileCacheRecord.swift │ ├── Query.swift │ └── QueryEngine.swift ├── SPMBuildCore │ ├── BinaryTarget+Extensions.swift │ ├── BuildParameters │ │ ├── BuildParameters+Debugging.swift │ │ ├── BuildParameters+Driver.swift │ │ ├── BuildParameters+Linking.swift │ │ ├── BuildParameters+Output.swift │ │ ├── BuildParameters+Testing.swift │ │ └── BuildParameters.swift │ ├── BuildSystem │ │ ├── BuildSystem.swift │ │ ├── BuildSystemCommand.swift │ │ └── BuildSystemDelegate.swift │ ├── BuiltTestProduct.swift │ ├── CMakeLists.txt │ ├── CommandPluginResult.swift │ ├── Plugins │ │ ├── DefaultPluginScriptRunner.swift │ │ ├── PluginContextSerializer.swift │ │ ├── PluginInvocation.swift │ │ ├── PluginMessages.swift │ │ └── PluginScriptRunner.swift │ ├── ResolvedPackage+Extensions.swift │ ├── Triple+Extensions.swift │ ├── XCFrameworkMetadata.swift │ └── XcodeProjectRepresentation.swift ├── SPMLLBuild │ ├── CMakeLists.txt │ └── llbuild.swift ├── SPMSQLite3 │ ├── CMakeLists.txt │ ├── module.modulemap │ └── sqlite.h ├── SourceControl │ ├── CMakeLists.txt │ ├── GitRepository.swift │ ├── Repository.swift │ └── RepositoryManager.swift ├── SourceKitLSPAPI │ ├── BuildDescription.swift │ ├── CMakeLists.txt │ └── PluginTargetBuildDescription.swift ├── SwiftBuildSupport │ ├── BuildSystem.swift │ ├── CMakeLists.txt │ ├── DotPIFSerializer.swift │ ├── PIF.swift │ ├── PIFBuilder.swift │ ├── PackagePIFBuilder+Helpers.swift │ ├── PackagePIFBuilder+Plugins.swift │ ├── PackagePIFBuilder.swift │ ├── PackagePIFProjectBuilder+Modules.swift │ ├── PackagePIFProjectBuilder+Products.swift │ ├── PackagePIFProjectBuilder.swift │ ├── README.md │ └── SwiftBuildSystem.swift ├── SwiftFixIt │ ├── CMakeLists.txt │ └── SwiftFixIt.swift ├── SwiftSDKCommand │ ├── CMakeLists.txt │ ├── Configuration │ │ ├── ConfigurationSubcommand.swift │ │ ├── DeprecatedSwiftSDKConfigurationCommand.swift │ │ ├── ResetConfiguration.swift │ │ ├── SetConfiguration.swift │ │ └── ShowConfiguration.swift │ ├── ConfigureSwiftSDK.swift │ ├── InstallSwiftSDK.swift │ ├── ListSwiftSDKs.swift │ ├── README.md │ ├── RemoveSwiftSDK.swift │ ├── SwiftSDKCommand.swift │ └── SwiftSDKSubcommand.swift ├── Workspace │ ├── CMakeLists.txt │ ├── CheckoutState.swift │ ├── Diagnostics.swift │ ├── InitPackage.swift │ ├── LoadableResult.swift │ ├── ManagedArtifact.swift │ ├── ManagedDependency.swift │ ├── ManagedPrebuilt.swift │ ├── ManifestSigning │ │ ├── Base64URL.swift │ │ ├── CertificatePolicy.swift │ │ ├── ManifestSigning.swift │ │ ├── Signature.swift │ │ ├── Utilities.swift │ │ ├── X509Extensions.swift │ │ └── embedded_resources.swift │ ├── PackageContainer │ │ ├── FileSystemPackageContainer.swift │ │ ├── RegistryPackageContainer.swift │ │ └── SourceControlPackageContainer.swift │ ├── ResolvedFileWatcher.swift │ ├── ResolverPrecomputationProvider.swift │ ├── ToolsVersionSpecificationRewriter.swift │ ├── Workspace+BinaryArtifacts.swift │ ├── Workspace+Configuration.swift │ ├── Workspace+Delegation.swift │ ├── Workspace+Dependencies.swift │ ├── Workspace+Editing.swift │ ├── Workspace+Manifests.swift │ ├── Workspace+PackageContainer.swift │ ├── Workspace+Prebuilts.swift │ ├── Workspace+Registry.swift │ ├── Workspace+ResolvedPackages.swift │ ├── Workspace+Signing.swift │ ├── Workspace+SourceControl.swift │ ├── Workspace+State.swift │ └── Workspace.swift ├── XCBuildSupport │ ├── CMakeLists.txt │ ├── PIF.swift │ ├── PIFBuilder.swift │ ├── XCBuildDelegate.swift │ ├── XCBuildMessage.swift │ ├── XCBuildOutputParser.swift │ └── XcodeBuildSystem.swift ├── _AsyncFileSystem │ ├── AsyncFileSystem.swift │ ├── CMakeLists.txt │ ├── ConcurrencySupport.swift │ ├── MockFileSystem.swift │ ├── OSFileSystem.swift │ ├── OpenReadableFile.swift │ ├── OpenWritableFile.swift │ ├── ReadableFileStream.swift │ └── WritableStream.swift ├── _InternalBuildTestSupport │ ├── MockBuildTestHelper.swift │ └── PIFTester.swift ├── _InternalTestSupport │ ├── Commands.swift │ ├── GitRepositoryExtensions.swift │ ├── InMemoryGitRepository.swift │ ├── ManifestExtensions.swift │ ├── MockArchiver.swift │ ├── MockBuildTestHelper.swift │ ├── MockDependency.swift │ ├── MockDependencyGraph.swift │ ├── MockHTTPClient.swift │ ├── MockHashAlgorithm.swift │ ├── MockManifestLoader.swift │ ├── MockPackage.swift │ ├── MockPackageContainer.swift │ ├── MockPackageFingerprintStorage.swift │ ├── MockPackageGraphs.swift │ ├── MockPackageSigningEntityStorage.swift │ ├── MockProduct.swift │ ├── MockRegistry.swift │ ├── MockTarget.swift │ ├── MockWorkspace.swift │ ├── Observability.swift │ ├── PackageDependencyDescriptionExtensions.swift │ ├── PackageGraphTester.swift │ ├── ResolvedModule+Mock.swift │ ├── SkippedTestSupport.swift │ ├── SwiftPMProduct.swift │ ├── Toolchain.swift │ ├── XCTAssertHelpers.swift │ └── misc.swift ├── dummy-swiftc │ └── main.swift ├── swift-bootstrap │ ├── CMakeLists.txt │ └── main.swift ├── swift-build-prebuilts │ └── BuildPrebuilts.swift ├── swift-build │ ├── CMakeLists.txt │ └── Entrypoint.swift ├── swift-experimental-sdk │ ├── CMakeLists.txt │ └── Entrypoint.swift ├── swift-package-collection │ └── Entrypoint.swift ├── swift-package-manager │ └── SwiftPM.swift ├── swift-package-registry │ └── runner.swift ├── swift-package │ ├── CMakeLists.txt │ └── Entrypoint.swift ├── swift-run │ ├── CMakeLists.txt │ └── Entrypoint.swift ├── swift-sdk │ ├── CMakeLists.txt │ └── Entrypoint.swift ├── swift-test │ ├── CMakeLists.txt │ └── Entrypoint.swift ├── swiftpm-testing-helper │ └── Entrypoint.swift └── tsan_utils │ ├── include │ ├── module.modulemap │ └── tsan_utils.h │ └── tsan_utils.c ├── Tests ├── BasicsTests │ ├── Archiver │ │ ├── Inputs │ │ │ ├── archive.tar.gz │ │ │ ├── archive.zip │ │ │ ├── invalid_archive.tar.gz │ │ │ └── invalid_archive.zip │ │ ├── TarArchiverTests.swift │ │ ├── UniversalArchiverTests.swift │ │ └── ZipArchiverTests.swift │ ├── AsyncProcessTests.swift │ ├── AuthorizationProviderTests.swift │ ├── ByteStringExtensionsTests.swift │ ├── CancellatorTests.swift │ ├── ConcurrencyHelpersTests.swift │ ├── DictionaryTest.swift │ ├── DispatchTimeTests.swift │ ├── Environment │ │ ├── EnvironmentKeyTests.swift │ │ └── EnvironmentTests.swift │ ├── FileSystem │ │ ├── FileSystemTests.swift │ │ ├── InMemoryFilesSystemTests.swift │ │ ├── PathShimTests.swift │ │ ├── PathTests.swift │ │ ├── TemporaryFileTests.swift │ │ └── VFSTests.swift │ ├── Graph │ │ ├── AdjacencyMatrixTests.swift │ │ ├── DirectedGraphTests.swift │ │ └── UndirectedGraphTests.swift │ ├── HTTPClientTests.swift │ ├── LegacyHTTPClientTests.swift │ ├── NetrcTests.swift │ ├── ObservabilitySystemTests.swift │ ├── ProgressAnimationTests.swift │ ├── SQLiteBackedCacheTests.swift │ ├── SandboxTests.swift │ ├── Serialization │ │ └── SerializedJSONTests.swift │ ├── StringExtensionsTests.swift │ ├── TripleTests.swift │ ├── URLSessionHTTPClientTests.swift │ └── processInputs │ │ ├── deadlock-if-blocking-io │ │ ├── deadlock-if-blocking-io.bat │ │ ├── echo │ │ ├── echo.bat │ │ ├── exit4 │ │ ├── exit4.bat │ │ ├── in-to-out │ │ ├── in-to-out.bat │ │ ├── long-stdout-stderr │ │ ├── long-stdout-stderr.bat │ │ ├── simple-stdout-stderr │ │ └── simple-stdout-stderr.bat ├── BuildTests │ ├── BuildOperationTests.swift │ ├── BuildPlanTests.swift │ ├── BuildPlanTraversalTests.swift │ ├── BuildSystemDelegateTests.swift │ ├── ClangTargetBuildDescriptionTests.swift │ ├── CrossCompilationBuildPlanTests.swift │ ├── IncrementalBuildTests.swift │ ├── LLBuildManifestBuilderTests.swift │ ├── ModuleAliasingBuildTests.swift │ ├── PluginInvocationTests.swift │ ├── PluginsBuildPlanTests.swift │ ├── PrepareForIndexTests.swift │ ├── ProductBuildDescriptionTests.swift │ ├── SwiftCompilerOutputParserTests.swift │ └── WindowsBuildPlanTests.swift ├── CommandsTests │ ├── APIDiffTests.swift │ ├── BuildCommandTests.swift │ ├── CommandsTestCase.swift │ ├── MermaidPackageSerializerTests.swift │ ├── MultiRootSupportTests.swift │ ├── PackageCommandTests.swift │ ├── PackageRegistryCommandTests.swift │ ├── RunCommandTests.swift │ ├── SwiftCommandStateTests.swift │ ├── SwiftSDKCommandTests.swift │ └── TestCommandTests.swift ├── ExtraTests │ ├── .gitignore │ ├── Package.swift │ ├── README.md │ └── Tests │ │ ├── ExtraTests │ │ └── FSWatchTests.swift │ │ └── LinuxMain.swift ├── FunctionalPerformanceTests │ └── BuildPerfTests.swift ├── FunctionalTests │ ├── CFamilyTargetTests.swift │ ├── DependencyResolutionTests.swift │ ├── MacroTests.swift │ ├── MiscellaneousTests.swift │ ├── ModuleAliasingFixtureTests.swift │ ├── ModuleMapTests.swift │ ├── PluginTests.swift │ ├── ResourcesTests.swift │ ├── StaticBinaryLibrary.swift │ ├── TestDiscoveryTests.swift │ ├── ToolsVersionTests.swift │ ├── TraitTests.swift │ └── VersionSpecificTests.swift ├── LLBuildManifestTests │ └── LLBuildManifestTests.swift ├── PackageCollectionsModelTests │ └── PackageCollectionModelTests.swift ├── PackageCollectionsSigningTests │ ├── CertificatePolicyTests.swift │ ├── PackageCollectionSigningTests.swift │ ├── SignatureTests.swift │ └── Utilities.swift ├── PackageCollectionsTests │ ├── GitHubPackageMetadataProviderTests.swift │ ├── JSONPackageCollectionProviderTests.swift │ ├── PackageCollectionSourceCertificatePolicyTests.swift │ ├── PackageCollectionValidationTests.swift │ ├── PackageCollectionsModelTests.swift │ ├── PackageCollectionsSourcesStorageTest.swift │ ├── PackageCollectionsStorageTests.swift │ ├── PackageCollectionsTests.swift │ ├── PackageIndexAndCollectionsTests.swift │ ├── PackageIndexConfigurationTests.swift │ ├── PackageIndexTests.swift │ ├── TrieTests.swift │ ├── Utility.swift │ └── ValidationMessageTests.swift ├── PackageDescriptionTests │ └── VersionTests.swift ├── PackageFingerprintTests │ └── FilePackageFingerprintStorageTests.swift ├── PackageGraphPerformanceTests │ ├── DependencyResolverPerfTests.swift │ ├── Inputs │ │ ├── PerfectHTTPServer.json │ │ ├── SourceKitten.json │ │ ├── ZewoHTTPServer.json │ │ └── kitura.json │ └── PackageGraphPerfTests.swift ├── PackageGraphTests │ ├── CrossCompilationPackageGraphTests.swift │ ├── DependencyResolverTests.swift │ ├── ModulesGraphTests.swift │ ├── PubGrubTests.swift │ ├── ResolvedTargetTests.swift │ ├── TopologicalSortTests.swift │ └── VersionSetSpecifierTests.swift ├── PackageLoadingTests │ ├── Inputs │ │ ├── Bar.pc │ │ ├── Dependency.pc │ │ ├── Dependent.pc │ │ ├── Foo.pc │ │ ├── Framework.pc │ │ ├── package-deps-manifest.swift │ │ ├── target-deps-manifest.swift │ │ └── trivial-manifest.swift │ ├── ManifestLoaderCacheTests.swift │ ├── ManifestSignatureParserTests.swift │ ├── ModuleMapGenerationTests.swift │ ├── PDAppleProductLoadingTests.swift │ ├── PDLoadingTests.swift │ ├── PD_4_0_LoadingTests.swift │ ├── PD_4_2_LoadingTests.swift │ ├── PD_5_0_LoadingTests.swift │ ├── PD_5_2_LoadingTests.swift │ ├── PD_5_3_LoadingTests.swift │ ├── PD_5_4_LoadingTests.swift │ ├── PD_5_5_LoadingTests.swift │ ├── PD_5_6_LoadingTests.swift │ ├── PD_5_7_LoadingTests.swift │ ├── PD_5_9_LoadingTests.swift │ ├── PD_6_0_LoadingTests.swift │ ├── PD_Next_LoadingTests.swift │ ├── PackageBuilderTests.swift │ ├── PkgConfigAllowlistTests.swift │ ├── PkgConfigParserTests.swift │ ├── PkgConfigTests.swift │ ├── TargetSourcesBuilderTests.swift │ ├── ToolsVersionParserTests.swift │ ├── TraitLoadingTests.swift │ └── pkgconfigInputs │ │ ├── case_insensitive.pc │ │ ├── deps_variable.pc │ │ ├── double_sysroot.pc │ │ ├── dummy_dependency.pc │ │ ├── empty_cflags.pc │ │ ├── escaped_spaces.pc │ │ ├── failure_case.pc │ │ ├── freetype2.pc │ │ ├── gobject-2.0.pc │ │ ├── gtk+-3.0.pc │ │ ├── harfbuzz.pc │ │ ├── libffi.pc │ │ ├── not_double_sysroot.pc │ │ └── quotes_failure.pc ├── PackageModelSyntaxTests │ └── ManifestEditTests.swift ├── PackageModelTests │ ├── CanonicalPackageLocationTests.swift │ ├── InstalledSwiftPMConfigurationTests.swift │ ├── ManifestTests.swift │ ├── MinimumDeploymentTargetTests.swift │ ├── PackageIdentityNameTests.swift │ ├── PackageIdentityParser.swift │ ├── PackageIdentityScopeTests.swift │ ├── PackageModelTests.swift │ ├── SnippetTests.swift │ ├── SwiftLanguageVersionTests.swift │ ├── SwiftSDKBundleTests.swift │ ├── SwiftSDKTests.swift │ ├── ToolsVersionTests.swift │ └── ToolsetTests.swift ├── PackagePluginAPITests │ ├── ArgumentExtractorTests.swift │ └── PathTests.swift ├── PackageRegistryTests │ ├── PackageSigningEntityTOFUTests.swift │ ├── PackageVersionChecksumTOFUTests.swift │ ├── RegistryClientTests.swift │ ├── RegistryConfigurationTests.swift │ ├── RegistryDownloadsManagerTests.swift │ └── SignatureValidationTests.swift ├── PackageSigningTests │ ├── FilePackageSigningEntityStorageTests.swift │ ├── SigningEntityTests.swift │ ├── SigningIdentityTests.swift │ ├── SigningTests.swift │ └── Utilities.swift ├── QueryEngineTests │ └── QueryEngineTests.swift ├── SPMBuildCoreTests │ ├── ArtifactsArchiveMetadataTests.swift │ ├── BuildParametersTests.swift │ └── XCFrameworkMetadataTests.swift ├── SourceControlTests │ ├── GitRepositoryProviderTests.swift │ ├── GitRepositoryTests.swift │ ├── InMemoryGitRepositoryTests.swift │ ├── Inputs │ │ └── TestRepo.tgz │ └── RepositoryManagerTests.swift ├── SourceKitLSPAPITests │ └── SourceKitLSPAPITests.swift ├── SwiftFixItTests │ ├── BasicTests.swift │ ├── CategoryTests.swift │ ├── FilteringTests.swift │ └── Utilities.swift ├── WorkspaceTests │ ├── AuthorizationProviderTests.swift │ ├── InitTests.swift │ ├── ManifestSourceGenerationTests.swift │ ├── MirrorsConfigurationTests.swift │ ├── PrebuiltsTests.swift │ ├── RegistryPackageContainerTests.swift │ ├── ResolvedPackagesStoreTests.swift │ ├── SourceControlPackageContainerTests.swift │ ├── ToolsVersionSpecificationGenerationTests.swift │ ├── ToolsVersionSpecificationRewriterTests.swift │ ├── WorkspaceStateTests.swift │ └── WorkspaceTests.swift ├── XCBuildSupportTests │ ├── Inputs │ │ └── Foo.pc │ ├── PIFBuilderTests.swift │ └── PIFTests.swift ├── _AsyncFileSystemTests │ └── AsyncFileSystemTests.swift └── _InternalTestSupportTests │ ├── Misc.swift │ └── XCTAssertHelpersTests.swift ├── Utilities ├── Certificates │ ├── Intermediates │ │ ├── AppleWWDRCAG2.cer │ │ ├── AppleWWDRCAG3.cer │ │ ├── AppleWWDRCAG4.cer │ │ ├── AppleWWDRCAG5.cer │ │ ├── AppleWWDRCAG6.cer │ │ ├── AppleWWDRCAG7.cer │ │ └── AppleWWDRCAG8.cer │ ├── Package.swift │ ├── README.md │ ├── Roots │ │ ├── AppleComputerRootCertificate.cer │ │ ├── AppleIncRootCertificate.cer │ │ ├── AppleRootCA-G2.cer │ │ └── AppleRootCA-G3.cer │ ├── empty.swift │ └── generate.sh ├── Docker │ ├── Dockerfile │ ├── docker-compose.1604.53.yaml │ ├── docker-compose.1804.53.yaml │ ├── docker-compose.2004.54.yaml │ ├── docker-compose.2004.55.yaml │ ├── docker-compose.2004.56.yaml │ ├── docker-compose.2004.57.yaml │ ├── docker-compose.2004.main.yaml │ ├── docker-compose.2204.58.yaml │ ├── docker-compose.2204.59.yaml │ └── docker-compose.yaml ├── InstalledSwiftPMConfiguration │ ├── Package.swift │ └── Sources │ │ ├── InstalledSwiftPMConfiguration.swift │ │ └── exec.swift ├── README.md ├── bootstrap ├── build-using-self ├── config.json ├── generate_contributors_list.sh ├── helpers.py ├── new-bootstrap ├── soundness.sh └── test-toolchain ├── cmake └── modules │ ├── CMakeLists.txt │ └── FindLLBuild.cmake └── xcode └── SwiftPM-Package.xctestplan /.dir-locals.el: -------------------------------------------------------------------------------- 1 | ;;; Directory Local Variables -*- no-byte-compile: t -*- 2 | ;;; For more information see (info "(emacs) Directory Variables") 3 | 4 | ((nil . ((c-basic-offset . 4))) 5 | (swift-mode . ((swift-mode:basic-offset . 4)))) 6 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | xcode_trim_whitespace_on_empty_lines = true 11 | 12 | [*.{yml,yaml}] 13 | indent_size = 2 14 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | _[One line description of your change]_ 2 | 3 | ### Motivation: 4 | 5 | _[Explain here the context, and why you're making that change. What is the problem you're trying to solve.]_ 6 | 7 | ### Modifications: 8 | 9 | _[Describe the modifications you've done.]_ 10 | 11 | ### Result: 12 | 13 | _[After your change, what will change.]_ 14 | -------------------------------------------------------------------------------- /.mailfilter: -------------------------------------------------------------------------------- 1 | # This is a list of `shasum` hashed email addresses which are filtered from CONTRIBUTORS.txt, typically for privacy. 2 | # Lines can be generated by running `echo -n 'My Name ' | shasum | head -c 40`. 3 | 4 | 03a39e53ca4764a094b9f6e548e8d1ce0d941d7b 5 | 38268a29b340ecfb435c5e6c5827a596acb71cc6 6 | 43b012c0b4e67962522a02e12d07cb5d5c5ba036 7 | 886d1da6503c6de1d630beaf6acb667e4ce3e2a0 8 | -------------------------------------------------------------------------------- /.pep8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | filename = *.py,bootstrap 3 | max-line-length = 80 4 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 6.1.0 -------------------------------------------------------------------------------- /Benchmarks/Thresholds/macos-arm64/PackageGraphBenchmarks.SwiftPMWorkspaceModulesGraph.p90.json: -------------------------------------------------------------------------------- 1 | { 2 | "mallocCountTotal" : 11255, 3 | "syscalls" : 1497 4 | } -------------------------------------------------------------------------------- /Benchmarks/Thresholds/macos-arm64/PackageGraphBenchmarks.SyntheticModulesGraph.p90.json: -------------------------------------------------------------------------------- 1 | { 2 | "mallocCountTotal" : 15679, 3 | "syscalls" : 0 4 | } -------------------------------------------------------------------------------- /Benchmarks/Thresholds/macos-arm64/PackageGraphBenchmarks.SyntheticModulesGraphWithMacros.p90.json: -------------------------------------------------------------------------------- 1 | { 2 | "mallocCountTotal" : 7743, 3 | "syscalls" : 0 4 | } -------------------------------------------------------------------------------- /Benchmarks/Thresholds/macosx-arm64/PackageGraphBenchmarks.SwiftPMWorkspaceModulesGraph.p90.json: -------------------------------------------------------------------------------- 1 | { 2 | "mallocCountTotal" : 10775, 3 | "syscalls" : 1508 4 | } -------------------------------------------------------------------------------- /Benchmarks/Thresholds/macosx-arm64/PackageGraphBenchmarks.SyntheticModulesGraph.p90.json: -------------------------------------------------------------------------------- 1 | { 2 | "mallocCountTotal" : 2427, 3 | "syscalls" : 0 4 | } -------------------------------------------------------------------------------- /Examples/package-info/README.md: -------------------------------------------------------------------------------- 1 | # package-info 2 | 3 | Sample package built on top of libSwiftPM. 4 | -------------------------------------------------------------------------------- /Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/dist/linux/libSimple_arm64.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/dist/linux/libSimple_arm64.a -------------------------------------------------------------------------------- /Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/dist/linux/libSimple_x86_64.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/dist/linux/libSimple_x86_64.a -------------------------------------------------------------------------------- /Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/dist/macos/libSimple.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/dist/macos/libSimple.a -------------------------------------------------------------------------------- /Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/dist/macos/libSimple_arm64.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/dist/macos/libSimple_arm64.a -------------------------------------------------------------------------------- /Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/dist/macos/libSimple_x86_64.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/dist/macos/libSimple_x86_64.a -------------------------------------------------------------------------------- /Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/include/simple.h: -------------------------------------------------------------------------------- 1 | int foo(void); 2 | -------------------------------------------------------------------------------- /Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/include/simple.modulemap: -------------------------------------------------------------------------------- 1 | module Simple { 2 | header "simple.h" 3 | export * 4 | } -------------------------------------------------------------------------------- /Fixtures/BinaryLibraries/Static/Package1/Simple.artifactbundle/simple.c: -------------------------------------------------------------------------------- 1 | int foo(void) { return 42; } 2 | -------------------------------------------------------------------------------- /Fixtures/BinaryLibraries/Static/Package1/Sources/Example/Example.swift: -------------------------------------------------------------------------------- 1 | import Simple 2 | import Wrapper 3 | 4 | @main 5 | struct Example { 6 | static func main() { 7 | print(foo()) 8 | print(bar()) 9 | } 10 | } -------------------------------------------------------------------------------- /Fixtures/BinaryLibraries/Static/Package1/Sources/Wrapper/include/wrapper.h: -------------------------------------------------------------------------------- 1 | int bar(void); 2 | -------------------------------------------------------------------------------- /Fixtures/BinaryLibraries/Static/Package1/Sources/Wrapper/wrapper.c: -------------------------------------------------------------------------------- 1 | #include "simple.h" 2 | 3 | int bar(void) { return foo(); } 4 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CDynamicLookup/Foo.c: -------------------------------------------------------------------------------- 1 | #include "Foo.h" 2 | 3 | int foo() { 4 | bar(); 5 | int a = 5; 6 | int b = a; 7 | a = b; 8 | return a; 9 | } 10 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CDynamicLookup/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "CDynamicLookup", 6 | targets: [ 7 | .target(name: "CDynamicLookup", path: "./"), 8 | ] 9 | ) 10 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CDynamicLookup/include/Foo.h: -------------------------------------------------------------------------------- 1 | void bar(); 2 | int foo(); 3 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryNoIncludeDir/Cfactorial/Sources/factorial/factorial.c: -------------------------------------------------------------------------------- 1 | //#include "include/factorial.h" 2 | #include "factorial.h" 3 | long factorial(int n) { 4 | if (n == 0 || n == 1) return 1; 5 | return n * factorial(n-1); 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryNoIncludeDir/Cfactorial/Sources/factorial/factorial.h: -------------------------------------------------------------------------------- 1 | #ifndef factorial_h 2 | #define factorial_h 3 | 4 | #include 5 | 6 | long factorial(int n); 7 | 8 | #endif /* factorial_h */ 9 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryNoIncludeDir/Sources/Client/main.swift: -------------------------------------------------------------------------------- 1 | import Cfactorial 2 | 3 | print(factorial(5)) 4 | print("Hello, world!") 5 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryParentSearchPath/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | xcuserdata/ 6 | DerivedData/ 7 | .swiftpm/config/registries.json 8 | .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata 9 | .netrc 10 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryParentSearchPath/Sources/CHeaderInclude/answers.c: -------------------------------------------------------------------------------- 1 | 2 | #include "answers.h" 3 | #include "Constants.h" 4 | 5 | int getAnswer(void) { 6 | return kTheAnswer; 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryParentSearchPath/Sources/CHeaderInclude/include/answers.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef answers_h 3 | #define answers_h 4 | 5 | extern int getAnswer(void); 6 | 7 | #endif /* answers_h */ 8 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryParentSearchPath/Sources/Constants/Constants.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef Constants_h 3 | #define Constants_h 4 | 5 | static const int kTheAnswer = 42; 6 | 7 | #endif /* Constants_h */ 8 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryParentSearchPath/Sources/HeaderInclude/FinalForm.swift: -------------------------------------------------------------------------------- 1 | 2 | import CHeaderInclude 3 | 4 | enum Answer { 5 | var value: Int { Int(getAnswer()) } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibrarySources/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "CLibrarySources", 6 | targets: [ 7 | .target(name: "CLibrarySources", path: "Sources"), 8 | ] 9 | ) 10 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibrarySources/Sources/Foo.c: -------------------------------------------------------------------------------- 1 | #include "Foo.h" 2 | 3 | int foo() { 4 | int a = 5; 5 | int b = a; 6 | a = b; 7 | return a; 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibrarySources/Sources/include/Foo.h: -------------------------------------------------------------------------------- 1 | int foo(); 2 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibrarySources/Tests/CLibrarySourcesTests/foo.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/CFamilyTargets/CLibrarySources/Tests/CLibrarySourcesTests/foo.swift -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibrarySources/Tests/LinuxMain.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/CFamilyTargets/CLibrarySources/Tests/LinuxMain.swift -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryWithSpaces/Sources/Bar with spaces/Bar.c: -------------------------------------------------------------------------------- 1 | int bar() { 2 | return 5; 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryWithSpaces/Sources/Bar with spaces/include/Bar/Bar.h: -------------------------------------------------------------------------------- 1 | int bar(); 2 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryWithSpaces/Sources/Bar/Bar.c: -------------------------------------------------------------------------------- 1 | #include "Bar/Bar.h" 2 | #include "Foo/Foo.h" 3 | 4 | int bar() { 5 | int a = foo(); 6 | int b = a; 7 | a = b; 8 | return a; 9 | } 10 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryWithSpaces/Sources/Bar/include/Bar/Bar.h: -------------------------------------------------------------------------------- 1 | int bar(); 2 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryWithSpaces/Sources/Baz/main.swift: -------------------------------------------------------------------------------- 1 | import Foo 2 | import Bar 3 | 4 | let _ = foo() 5 | let _ = bar() 6 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryWithSpaces/Sources/Foo/Foo.c: -------------------------------------------------------------------------------- 1 | #include "Foo/Foo.h" 2 | 3 | int foo() { 4 | int a = 5; 5 | int b = a; 6 | a = b; 7 | return a; 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/CLibraryWithSpaces/Sources/Foo/include/Foo/Foo.h: -------------------------------------------------------------------------------- 1 | int foo(); 2 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/Baz/main.swift: -------------------------------------------------------------------------------- 1 | import UmbrellaDirectoryInclude 2 | import FlatInclude 3 | import UmbrellaHeader 4 | import UmbrellaHeaderFlat 5 | 6 | let _ = foo() 7 | let _ = bar() 8 | let _ = jaz() 9 | let _ = umbrellaHeaderFlat() 10 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/FlatInclude/FlatInclude.c: -------------------------------------------------------------------------------- 1 | #include "FlatIncludeHeader.h" 2 | 3 | int bar() { 4 | int a = 6; 5 | int b = a; 6 | a = b; 7 | return a; 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/FlatInclude/include/FlatIncludeHeader.h: -------------------------------------------------------------------------------- 1 | int bar(); 2 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/NoIncludeDir/Jaz.c: -------------------------------------------------------------------------------- 1 | 2 | int noDir() { 3 | int a = 6; 4 | int b = a; 5 | a = b; 6 | return a; 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/NonModuleDirectoryInclude/Maz.c: -------------------------------------------------------------------------------- 1 | #include "NonModuleDirectoryInclude/Maz.h" 2 | 3 | int maz() { 4 | int a = 6; 5 | int b = a; 6 | a = b; 7 | return a; 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/NonModuleDirectoryInclude/include/NonModuleDirectoryInclude/Maz.h: -------------------------------------------------------------------------------- 1 | int jaz(); 2 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/UmbrellaDirectoryInclude/Jaz.c: -------------------------------------------------------------------------------- 1 | #include "Paz.h" 2 | 3 | int jaz() { 4 | int a = 6; 5 | int b = a; 6 | a = b; 7 | return a; 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/UmbrellaDirectoryInclude/include/Paz.h: -------------------------------------------------------------------------------- 1 | int jaz(); 2 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/UmbrellaHeader/UmbrellaHeader.c: -------------------------------------------------------------------------------- 1 | #include "UmbrellaHeader/UmbrellaHeader.h" 2 | 3 | int foo() { 4 | int a = 5; 5 | int b = a; 6 | a = b; 7 | return a; 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/UmbrellaHeader/include/UmbrellaHeader/UmbrellaHeader.h: -------------------------------------------------------------------------------- 1 | int foo(); 2 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/UmbrellaHeaderFlat/UmbrellaHeader.c: -------------------------------------------------------------------------------- 1 | #include "UmbrellaHeaderFlat.h" 2 | 3 | int umbrellaHeaderFlat() { 4 | int a = 5; 5 | int b = a; 6 | a = b; 7 | return a; 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ModuleMapGenerationCases/Sources/UmbrellaHeaderFlat/include/UmbrellaHeaderFlat.h: -------------------------------------------------------------------------------- 1 | int umbrellaHeaderFlat(); 2 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ObjCmacOSPackage/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "ObjCmacOSPackage", 6 | targets: [ 7 | .target(name: "ObjCmacOSPackage", path: "Sources"), 8 | .testTarget(name: "ObjCmacOSPackageTests", dependencies: ["ObjCmacOSPackage"]), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ObjCmacOSPackage/Sources/HelloWorldExample.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "HelloWorldExample.h" 3 | 4 | @implementation HelloWorld 5 | - (NSString *)hello:(NSString *)name { 6 | if(!name) { 7 | name = @"World"; 8 | } 9 | return [NSString stringWithFormat:@"Hello, %@!", name]; 10 | } 11 | @end 12 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/ObjCmacOSPackage/Sources/include/HelloWorldExample.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface HelloWorld : NSObject 4 | 5 | - (NSString *)hello:(NSString *)name; 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/SwiftCMixed/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "SwiftCMixed", 6 | targets: [ 7 | .target(name: "SeaExec", dependencies: ["SeaLib"]), 8 | .target(name: "CExec", dependencies: ["SeaLib"]), 9 | .target(name: "SeaLib", dependencies: []), 10 | ] 11 | ) 12 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/SwiftCMixed/Sources/CExec/main.c: -------------------------------------------------------------------------------- 1 | #include "Foo.h" 2 | #include 3 | 4 | int main() { 5 | printf("%d", foo(5)); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/SwiftCMixed/Sources/SeaExec/main.swift: -------------------------------------------------------------------------------- 1 | import SeaLib 2 | 3 | let a = foo(5) 4 | print("a = \(a)") 5 | 6 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/SwiftCMixed/Sources/SeaLib/Foo.c: -------------------------------------------------------------------------------- 1 | int foo(int a) { 2 | return a; 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/CFamilyTargets/SwiftCMixed/Sources/SeaLib/include/Foo.h: -------------------------------------------------------------------------------- 1 | int foo(int a); 2 | -------------------------------------------------------------------------------- /Fixtures/Collections/GitHub/languages.json: -------------------------------------------------------------------------------- 1 | { 2 | "Swift": 3836385, 3 | "Shell": 96027, 4 | "C": 87433, 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Collections/Signing/TestIntermediateCA.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Collections/Signing/TestIntermediateCA.cer -------------------------------------------------------------------------------- /Fixtures/Collections/Signing/TestRootCA.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Collections/Signing/TestRootCA.cer -------------------------------------------------------------------------------- /Fixtures/Collections/Signing/Test_ec.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Collections/Signing/Test_ec.cer -------------------------------------------------------------------------------- /Fixtures/Collections/Signing/Test_ec_key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIFyZDwhGj2Q6ZchEt6DIQSptRk9yKPo60JH5x4u3p4YmoAoGCCqGSM49 3 | AwEHoUQDQgAEHg58TCXScU6zXSYygCNW0tBZeYFRWf3XAjaDJUkeEFUvKxiIcP8S 4 | sLfb8P9mukwJsj2CwfatwneFIUQGJ4P+SQ== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /Fixtures/Collections/Signing/Test_rsa.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Collections/Signing/Test_rsa.cer -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Branch/Bar/Sources/Bar/Bar.swift: -------------------------------------------------------------------------------- 1 | import Foo 2 | 3 | struct Bar { 4 | var text = "Hello, World!" 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Branch/Foo/Sources/Foo/Foo.swift: -------------------------------------------------------------------------------- 1 | struct Foo { 2 | var text = "Hello, World!" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/CUsingCDep/Bar/Sources/SeaLover/Sea.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void cool() { 4 | foo(); 5 | } -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/CUsingCDep/Bar/Sources/SeaLover/include/Sea.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/DependencyResolution/External/CUsingCDep/Bar/Sources/SeaLover/include/Sea.h -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/CUsingCDep/Bar/Sources/SwiftExec/main.swift: -------------------------------------------------------------------------------- 1 | import Foo 2 | 3 | foo() 4 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/CUsingCDep/Foo/Foo.c: -------------------------------------------------------------------------------- 1 | void foo() { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/CUsingCDep/Foo/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Foo", 6 | products: [ 7 | .library(name: "Foo", targets: ["Foo"]), 8 | ], 9 | targets: [ 10 | .target(name: "Foo", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/CUsingCDep/Foo/include/Foo/Foo.h: -------------------------------------------------------------------------------- 1 | void foo(); 2 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Complex/FisherYates/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "FisherYates", 6 | products: [ 7 | .library(name: "FisherYates", targets: ["FisherYates"]), 8 | ], 9 | targets: [ 10 | .target(name: "FisherYates", path: "src"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Complex/PlayingCard/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "PlayingCard", 6 | products: [ 7 | .library(name: "PlayingCard", targets: ["PlayingCard"]), 8 | ], 9 | targets: [ 10 | .target(name: "PlayingCard", path: "src"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Complex/deck-of-playing-cards-local/src/Deck.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/DependencyResolution/External/Complex/deck-of-playing-cards-local/src/Deck.swift -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Mirror/App/main.swift: -------------------------------------------------------------------------------- 1 | import Foo 2 | import Bar 3 | 4 | public func main() { 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Mirror/Bar/Bar.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | } 3 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Mirror/Bar/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Bar", 6 | products: [ 7 | .library(name: "Bar", targets: ["Bar"]), 8 | ], 9 | targets: [ 10 | .target(name: "Bar", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Mirror/BarMirror/Bar.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | } 3 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Mirror/BarMirror/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Bar", 6 | products: [ 7 | .library(name: "Bar", targets: ["Bar"]), 8 | ], 9 | targets: [ 10 | .target(name: "Bar", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Mirror/Foo/Foo.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | } 3 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Mirror/Foo/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Foo", 6 | products: [ 7 | .library(name: "Foo", targets: ["Foo"]), 8 | ], 9 | targets: [ 10 | .target(name: "Foo", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/PackageLookupCaseInsensitive/dep/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.0 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "Dep", 7 | products: [ 8 | .library(name: "Dep", targets: ["Dep"]), 9 | ], 10 | targets: [ 11 | .target(name: "Dep", dependencies: []), 12 | ] 13 | ) 14 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/PackageLookupCaseInsensitive/dep/Sources/Dep/dep.swift: -------------------------------------------------------------------------------- 1 | public struct dep { 2 | public private(set) var text = "Hello, World!" 3 | 4 | public init() { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/PackageLookupCaseInsensitive/pkg/Sources/pkg/pkg.swift: -------------------------------------------------------------------------------- 1 | public struct pkg { 2 | public private(set) var text = "Hello, World!" 3 | 4 | public init() { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Simple/Bar/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Bar", 6 | dependencies: [ 7 | .package(url: "../Foo", from: "1.0.0"), 8 | ], 9 | targets: [ 10 | .target(name: "Bar", dependencies: ["Foo"], path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Simple/Bar/main.swift: -------------------------------------------------------------------------------- 1 | import Foo 2 | 3 | foo() 4 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Simple/Foo/Foo.swift: -------------------------------------------------------------------------------- 1 | public func foo() { 2 | {}() 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/Simple/Foo/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Foo", 6 | products: [ 7 | .library(name: "Foo", targets: ["Foo"]), 8 | ], 9 | targets: [ 10 | .target(name: "Foo", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/External/XCFramework/Foo/Foo.swift: -------------------------------------------------------------------------------- 1 | public func foo() { 2 | {}() 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/Complex/Sources/Bar/Bar.swift: -------------------------------------------------------------------------------- 1 | import Baz 2 | import Cat 3 | 4 | public class Bar { 5 | public init() 6 | {} 7 | 8 | public let baz = Baz() 9 | public let cat = Cat() 10 | } 11 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/Complex/Sources/Baz/Baz.swift: -------------------------------------------------------------------------------- 1 | public class Baz { 2 | public let value = "Baz" 3 | public init() 4 | {} 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/Complex/Sources/Cat/Cat.swift: -------------------------------------------------------------------------------- 1 | import Sound 2 | 3 | public class Cat { 4 | public let sound = Sound() 5 | public init() 6 | {} 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/Complex/Sources/Foo/Foo.swift: -------------------------------------------------------------------------------- 1 | import Bar 2 | 3 | func foo() -> String { 4 | let bar = Bar() 5 | return bar.cat.sound.description + " " + bar.baz.value 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/Complex/Sources/Foo/main.swift: -------------------------------------------------------------------------------- 1 | print(foo()) 2 | 3 | // TODO copy this fixture and make one that should not compile due to the dependency not being specified 4 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/Complex/Sources/Sound/Sound.swift: -------------------------------------------------------------------------------- 1 | public class Sound: CustomStringConvertible { 2 | public init() 3 | {} 4 | 5 | public var description: String { 6 | return "meiow" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/InternalExecutableAsDependency/Bar/Bar.swift: -------------------------------------------------------------------------------- 1 | public struct Bar { 2 | public init() {} 3 | public let value = "Bar" 4 | } 5 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/InternalExecutableAsDependency/Bar/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/DependencyResolution/Internal/InternalExecutableAsDependency/Bar/main.swift -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/InternalExecutableAsDependency/Foo/Foo.swift: -------------------------------------------------------------------------------- 1 | class Foo { 2 | let value = "Foo" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/InternalExecutableAsDependency/Foo/main.swift: -------------------------------------------------------------------------------- 1 | import Bar 2 | 3 | print(Foo().value) 4 | print(Bar().value) 5 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/InternalExecutableAsDependency/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Simple", 6 | targets: [ 7 | .target(name: "Foo", dependencies: ["Bar"], path: "Foo"), 8 | .target(name: "Bar", path: "Bar"), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/Simple/Bar/Bar.swift: -------------------------------------------------------------------------------- 1 | public struct Bar { 2 | public init() {} 3 | public let value = "Bar" 4 | } 5 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/Simple/Foo/Foo.swift: -------------------------------------------------------------------------------- 1 | class Foo { 2 | let value = "Foo" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/Simple/Foo/main.swift: -------------------------------------------------------------------------------- 1 | import Bar 2 | 3 | print(Foo().value) 4 | print(Bar().value) 5 | -------------------------------------------------------------------------------- /Fixtures/DependencyResolution/Internal/Simple/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Simple", 6 | targets: [ 7 | .target(name: "Foo", dependencies: ["Bar"], path: "Foo"), 8 | .target(name: "Bar", path: "Bar"), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/Macros/MacroPackage/Sources/MacroClient/client.swift: -------------------------------------------------------------------------------- 1 | import MacroDef 2 | 3 | struct Font: ExpressibleByFontLiteral { 4 | init(fontLiteralName: String, size: Int, weight: MacroDef.FontWeight) { 5 | } 6 | } 7 | 8 | let _: Font = #fontLiteral(name: "Comic Sans", size: 14, weight: .thin) 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/-DSWIFT_PACKAGE/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "ExtraCommandLineFlags", 7 | targets: [ 8 | .target(name: "CLib"), 9 | .target(name: "SwiftExec", dependencies: ["CLib"]), 10 | ] 11 | ) 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/-DSWIFT_PACKAGE/Sources/CLib/foo.c: -------------------------------------------------------------------------------- 1 | #include "CLib.h" 2 | 3 | void foo(void) { } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/-DSWIFT_PACKAGE/Sources/CLib/include/CLib.h: -------------------------------------------------------------------------------- 1 | // This is to check a -Xcc arg. 2 | #if !defined(EXTRA_C_DEFINE) || EXTRA_C_DEFINE != 2 3 | #error "unexpected compiler flags" 4 | #endif 5 | 6 | void foo(void); 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/-DSWIFT_PACKAGE/Sources/SwiftExec/main.swift: -------------------------------------------------------------------------------- 1 | import CLib 2 | 3 | // This is expected to be set with -Xswiftc. 4 | #if !EXTRA_SWIFTC_DEFINE 5 | doesNotCompile() 6 | #endif 7 | 8 | foo() 9 | 10 | class Bar { 11 | var bar: Int = 0 12 | #if SWIFT_PACKAGE 13 | #else 14 | var bar: String = "" 15 | #endif 16 | } 17 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/Bar/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Bar", 6 | products: [ 7 | .library(name: "Baz", targets: ["Baz"]), 8 | .library(name: "Qux", targets: ["Qux"]), 9 | ], 10 | targets: [ 11 | .target(name: "Baz"), 12 | .target(name: "Qux") 13 | ] 14 | ) 15 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/Bar/Sources/Baz/Baz.swift: -------------------------------------------------------------------------------- 1 | public func bar() -> Int { 2 | 42 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/Bar/Sources/Qux/Qux.swift: -------------------------------------------------------------------------------- 1 | public class Qux { public let x = 1 } 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/BrokenPkg/Sources/BrokenPkg/bestHeaders/header.h: -------------------------------------------------------------------------------- 1 | #ifndef FLAG 2 | #error "fail" 3 | #endif 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/BrokenPkg/Sources/BrokenPkg/code.m: -------------------------------------------------------------------------------- 1 | #import "header.h" 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/BrokenPkg/Sources/Swift2/file.swift: -------------------------------------------------------------------------------- 1 | import BrokenPkg 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/CIncludePath/Sources/CSample/include/CSample.h: -------------------------------------------------------------------------------- 1 | 2 | #include "config.h" 3 | #include "../vendorsrc/include/vendor.h" -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/CIncludePath/Sources/CSample/include/config.h: -------------------------------------------------------------------------------- 1 | #define HAVE_VENDOR_CONFIG 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/CIncludePath/Sources/CSample/vendorsrc/include/vendor.h: -------------------------------------------------------------------------------- 1 | 2 | #include "config.h" 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/CIncludePath/Sources/CSample/vendorsrc/src/vendor.c: -------------------------------------------------------------------------------- 1 | #include "vendor.h" 2 | 3 | int vendor__func(int n) 4 | { 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/CIncludePath/Sources/Sample/Sample.swift: -------------------------------------------------------------------------------- 1 | import CSample 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/CTargetDep/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "CLibrarySources", 6 | products: [ 7 | .library(name: "Lib", targets: ["Bar"]) 8 | ], 9 | targets: [ 10 | .target(name: "Foo"), 11 | .target(name: "Bar", dependencies: ["Foo"]) 12 | ] 13 | ) 14 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/CTargetDep/Sources/Bar/Bar.swift: -------------------------------------------------------------------------------- 1 | import Foo 2 | 3 | public func bar() -> Int { 4 | foo() 5 | return 42 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/CTargetDep/Sources/Foo/Foo.c: -------------------------------------------------------------------------------- 1 | #include "Foo.h" 2 | 3 | int foo() { 4 | int a = 5; 5 | int b = a; 6 | a = b; 7 | return a; 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/CTargetDep/Sources/Foo/include/Foo.h: -------------------------------------------------------------------------------- 1 | int foo(); 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/Foo/Foo.swift: -------------------------------------------------------------------------------- 1 | public func foo() { 2 | {}() 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/Foo/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Foo", 6 | products: [ 7 | .library(name: "Foo", targets: ["Foo"]), 8 | ], 9 | targets: [ 10 | .target(name: "Foo", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/NonAPILibraryTargets/Sources/Bar/Bar.swift: -------------------------------------------------------------------------------- 1 | import Baz 2 | 3 | public func bar() -> Int { 4 | 42 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/NonAPILibraryTargets/Sources/Baz/Baz.swift: -------------------------------------------------------------------------------- 1 | public enum Baz { 2 | case a, c 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/NonAPILibraryTargets/Sources/Exec/main.swift: -------------------------------------------------------------------------------- 1 | import Qux 2 | 3 | print("Hello, world!") 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/NonAPILibraryTargets/Sources/Foo/Foo.swift: -------------------------------------------------------------------------------- 1 | public struct Foo { 2 | func doThing() {} 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/APIDiff/NonAPILibraryTargets/Sources/Qux/Qux.swift: -------------------------------------------------------------------------------- 1 | public class Qux { public let x = 1 } 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/AtMainSupport/Sources/ClangExecSingleFile/NotMain.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | printf("Hello, C."); 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/AtMainSupport/Sources/SwiftExecMultiFile/NotMain.swift: -------------------------------------------------------------------------------- 1 | @main 2 | struct MyProgram { 3 | static func main() { 4 | print("Hello, Swift.") 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/AtMainSupport/Sources/SwiftExecMultiFile/OtherFile.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/AtMainSupport/Sources/SwiftExecMultiFile/OtherFile.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/AtMainSupport/Sources/SwiftExecSingleFile/NotMain.swift: -------------------------------------------------------------------------------- 1 | @main 2 | struct MyProgram { 3 | static func main() { 4 | print("Hello, Swift.") 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/CXX17CompilerCrash/v5_7/lodepng/lodepng.cpp: -------------------------------------------------------------------------------- 1 | #include "lodepng.h" 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/CXX17CompilerCrash/v5_7/src/user_objects.cc: -------------------------------------------------------------------------------- 1 | #include "user_objects.h" 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/CXX17CompilerCrash/v5_8/lodepng/lodepng.cpp: -------------------------------------------------------------------------------- 1 | #include "lodepng.h" 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/CXX17CompilerCrash/v5_8/src/user_objects.cc: -------------------------------------------------------------------------------- 1 | #include "user_objects.h" 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/CheckTestLibraryEnvironmentVariable/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.10 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "CheckTestLibraryEnvironmentVariable", 7 | targets: [ 8 | .testTarget(name: "CheckTestLibraryEnvironmentVariableTests"), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/CompileFails/Foo.swift: -------------------------------------------------------------------------------- 1 | class Foo { 2 | var bar: Int = 0 3 | 4 | compile_failure 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/CompileFails/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "CompileFails", 7 | targets: [ 8 | .target(name: "CompileFails", path: "./"), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependenciesWarnings/app/app.swift: -------------------------------------------------------------------------------- 1 | import dep1 2 | import dep2 3 | 4 | @main 5 | struct App { 6 | var deprecated: DeprecatedApp 7 | 8 | public static func main() { 9 | print("hello, world!") 10 | } 11 | } 12 | 13 | @available(*, deprecated) 14 | struct DeprecatedApp { 15 | } 16 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependenciesWarnings/dep1/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.7 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "dep1", 6 | products: [ 7 | .library(name: "dep1", targets: ["dep1"]) 8 | ], 9 | targets: [ 10 | .target(name: "dep1", path: "./") 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependenciesWarnings/dep1/code.swift: -------------------------------------------------------------------------------- 1 | struct Dep1 { 2 | var deprecated: Deprecated1 3 | } 4 | 5 | @available(*, deprecated) 6 | struct Deprecated1 { 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependenciesWarnings/dep2/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.7 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "dep2", 6 | products: [ 7 | .library(name: "dep2", targets: ["dep2"]) 8 | ], 9 | targets: [ 10 | .target(name: "dep2", path: "./") 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependenciesWarnings/dep2/code.swift: -------------------------------------------------------------------------------- 1 | struct Dep2 { 2 | var deprecated: Deprecated2 3 | } 4 | 5 | @available(*, deprecated) 6 | struct Deprecated2 { 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependenciesWarnings2/app/app.swift: -------------------------------------------------------------------------------- 1 | import dep1 2 | import dep2 3 | 4 | @main 5 | struct App { 6 | public static func main() { 7 | print("hello, world!") 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependenciesWarnings2/dep1/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.7 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "dep1", 6 | products: [ 7 | .library(name: "dep1", targets: ["dep1"]) 8 | ], 9 | targets: [ 10 | .target(name: "dep1", path: "./") 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependenciesWarnings2/dep1/code.swift: -------------------------------------------------------------------------------- 1 | struct Dep1 { 2 | var deprecated: Deprecated1 3 | } 4 | 5 | @available(*, deprecated) 6 | struct Deprecated1 { 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependenciesWarnings2/dep2/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.7 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "dep2", 6 | products: [ 7 | .library(name: "dep2", targets: ["dep2"]) 8 | ], 9 | targets: [ 10 | .target(name: "dep2", path: "./") 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependenciesWarnings2/dep2/code.swift: -------------------------------------------------------------------------------- 1 | struct Dep2 { 2 | var deprecated: Deprecated2 3 | } 4 | 5 | @available(*, deprecated) 6 | struct Deprecated2 { 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependencyEdges/External/dep1/Foo.swift: -------------------------------------------------------------------------------- 1 | public let foo = "Hello" 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependencyEdges/External/dep1/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "dep1", 6 | products: [ 7 | .library(name: "dep1", targets: ["dep1"]), 8 | ], 9 | targets: [ 10 | .target(name: "dep1", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependencyEdges/External/dep2/main.swift: -------------------------------------------------------------------------------- 1 | import dep1 2 | 3 | print(foo) 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependencyEdges/External/root/Bar.swift: -------------------------------------------------------------------------------- 1 | let bar = 1 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependencyEdges/External/root/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "root", 6 | dependencies: [ 7 | .package(url: "../dep2", from: "1.0.0"), 8 | ], 9 | targets: [ 10 | .target(name: "root", dependencies: ["dep2"], path: "./"), 11 | ] 12 | ) 13 | 14 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependencyEdges/Internal/Bar/Bar.swift: -------------------------------------------------------------------------------- 1 | public let bar = "Hello" 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependencyEdges/Internal/Foo/main.swift: -------------------------------------------------------------------------------- 1 | import Bar 2 | 3 | print(bar) 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DependencyEdges/Internal/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "ExtraCommandLineFlags", 7 | targets: [ 8 | .target(name: "Bar", path: "Bar"), 9 | .target(name: "Foo", dependencies: ["Bar"], path: "Foo"), 10 | ] 11 | ) 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DifferentProductTargetName/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Foo", 6 | products: [ 7 | .executable(name: "Foo", targets: ["Bar"]), 8 | ], 9 | targets: [ 10 | .target(name: "Bar", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DifferentProductTargetName/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/DifferentProductTargetName/main.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DistantFutureDeploymentTarget/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "DistantFutureDeploymentTarget", 6 | targets: [ 7 | .target(name: "DistantFutureDeploymentTarget", path: "Sources"), 8 | ] 9 | ) 10 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DistantFutureDeploymentTarget/Sources/main.swift: -------------------------------------------------------------------------------- 1 | /// This file exists to test the ability to override deployment targets via args passed to swiftc 2 | /// For this test to work, this file must have an API call which was introduced in a version 3 | /// higher than the default macOS deployment target that is checked in. 4 | @available(macOS 41.0, *) 5 | func foo() {} 6 | 7 | foo() 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/DoNotFilterLinkerDiagnostics/Sources/DoNotFilterLinkerDiagnostics/main.swift: -------------------------------------------------------------------------------- 1 | // The Swift Programming Language 2 | // https://docs.swift.org/swift-book 3 | 4 | print("Hello, world!") 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/EchoExecutable/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "EchoExecutable", 6 | products: [ 7 | .executable(name: "secho", targets: ["secho"]) 8 | ], 9 | targets: [ 10 | .target(name: "secho", dependencies: []), 11 | .testTarget(name: "TestSuite") 12 | ]) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/EchoExecutable/Tests/TestSuite/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | final class TestCase: XCTestCase { 4 | func testFoo() { 5 | XCTAssertTrue(true) 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/EchoExecutable/echo.bat: -------------------------------------------------------------------------------- 1 | echo sentinel 2 | echo %* 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/EchoExecutable/echo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo sentinel 4 | echo "$@" 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/EchoExecutable/toolset.json: -------------------------------------------------------------------------------- 1 | { 2 | "debugger": { "path": "echo.sh" }, 3 | "testRunner": { "path": "echo.sh" }, 4 | "schemaVersion" : "1.0", 5 | "rootPath" : "." 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/EchoExecutable/toolset.win32.json: -------------------------------------------------------------------------------- 1 | { 2 | "debugger": { "path": "echo.bat" }, 3 | "testRunner": { "path": "echo.bat" }, 4 | "schemaVersion" : "1.0", 5 | "rootPath" : "." 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Edit/App/src/main.swift: -------------------------------------------------------------------------------- 1 | import Foo 2 | import Bar 3 | 4 | public func main() { 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Edit/Bar/Bar.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | } 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Edit/Bar/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.3 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "Bar", 7 | products: [ 8 | .library(name: "Bar", targets: ["Bar"]), 9 | ], 10 | targets: [ 11 | .target(name: "Bar", path: "./"), 12 | ] 13 | ) 14 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Edit/Foo/Foo.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | } 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Edit/Foo/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.3 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "Foo", 7 | products: [ 8 | .library(name: "Foo", targets: ["Foo"]), 9 | ], 10 | targets: [ 11 | .target(name: "Foo", path: "./"), 12 | ] 13 | ) 14 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/EmptyTestsPkg/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/EmptyTestsPkg/Sources/EmptyTestsPkg/EmptyTestsPkg.swift: -------------------------------------------------------------------------------- 1 | struct EmptyTests { 2 | 3 | var text = "Hello, World!" 4 | var bool = false 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/EmptyTestsPkg/Tests/EmptyTestsPkgTests/EmptyTestsTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import EmptyTestsPkg 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Errors/FatalErrorInSingleXCTest/TypeLibrary/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | xcuserdata/ 5 | DerivedData/ 6 | .swiftpm/configuration/registries.json 7 | .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata 8 | .netrc 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Errors/FatalErrorInSingleXCTest/TypeLibrary/Sources/TypeLibrary/TypeLibrary.swift: -------------------------------------------------------------------------------- 1 | // The Swift Programming Language 2 | // https://docs.swift.org/swift-book 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Errors/FatalErrorInSingleXCTest/TypeLibrary/Tests/TypeLibraryTests/TypeLibraryTests.swift: -------------------------------------------------------------------------------- 1 | func testExample() throws { 2 | let x = 0 3 | let y = 1 / x 4 | print(y) 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ExactDependencies/FooExec/FooExec.swift: -------------------------------------------------------------------------------- 1 | import FooLib1 2 | import FooLib2 3 | 4 | public class FooExec { 5 | public var foo: FooLib1 6 | public var bar: FooLib2 7 | 8 | public init() { 9 | foo = FooLib1() 10 | bar = FooLib2() 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ExactDependencies/FooExec/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/ExactDependencies/FooExec/main.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ExactDependencies/FooLib1/Sources/FooLib1/FooLib1.swift: -------------------------------------------------------------------------------- 1 | public class FooLib1 { 2 | public var foo: Int 3 | 4 | public init() { 5 | foo = 0 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ExactDependencies/FooLib1/Sources/cli/main.swift: -------------------------------------------------------------------------------- 1 | import FooLib1 2 | 3 | print(FooLib1()) 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ExactDependencies/FooLib2/FooLib2.swift: -------------------------------------------------------------------------------- 1 | public class FooLib2 { 2 | public var foo: Int 3 | 4 | public init() { 5 | foo = 0 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ExactDependencies/FooLib2/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "FooLib2", 6 | products: [ 7 | .library(name: "FooLib2", targets: ["FooLib2"]), 8 | ], 9 | targets: [ 10 | .target(name: "FooLib2", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ExactDependencies/app/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "28_exact_dependencies", 6 | dependencies: [ 7 | .package(url: "../FooExec", from: "1.0.0"), 8 | ], 9 | targets: [ 10 | .target(name: "28_exact_dependencies", dependencies: ["FooExec"], path: "./"), 11 | ] 12 | ) 13 | 14 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ExactDependencies/app/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/ExactDependencies/app/main.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ExeTest/Sources/Exe/main.swift: -------------------------------------------------------------------------------- 1 | public func GetGreeting() -> String { 2 | return "Hello" 3 | } 4 | 5 | print("\(GetGreeting()), world!") 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/FlatPackage/MyExec.swift: -------------------------------------------------------------------------------- 1 | @main 2 | public struct MyExec { 3 | public private(set) var text = "Hello, World!" 4 | 5 | public static func main() { 6 | print(MyExec().text) 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/FlatPackage/MyTest.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import MyExec 3 | 4 | final class MyTest: XCTestCase { 5 | func testExample() throws { 6 | XCTAssertEqual(MyExec().text, "Hello, World!") 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/FlatPackage/README.md: -------------------------------------------------------------------------------- 1 | # FlatPackage 2 | 3 | A description of this package. 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ImportOfMissingDependency/Sources/A/A.swift: -------------------------------------------------------------------------------- 1 | import B 2 | public func bar(x: Int) -> Int { 3 | return 11 + foo(x: x) 4 | } 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ImportOfMissingDependency/Sources/B/B.swift: -------------------------------------------------------------------------------- 1 | public func foo(x: Int) -> Int { 2 | return 11 + x 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ImportOfMissingDependency/Sources/B/main.swift: -------------------------------------------------------------------------------- 1 | print(baz(x: 11)) 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LTO/SwiftAndCTargets/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | xcuserdata/ 5 | DerivedData/ 6 | .swiftpm/configuration/registries.json 7 | .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata 8 | .netrc 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LTO/SwiftAndCTargets/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.9 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "SwiftAndCTargets", 7 | targets: [ 8 | .target(name: "cLib"), 9 | .executableTarget(name: "exe", dependencies: ["cLib", "swiftLib"]), 10 | .target(name: "swiftLib"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LTO/SwiftAndCTargets/Sources/cLib/cLib.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "include/cLib.h" 4 | 5 | void cPrint(int value) { 6 | printf("c value: %i\n", value); 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LTO/SwiftAndCTargets/Sources/cLib/include/cLib.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | extern void cPrint(int); 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LTO/SwiftAndCTargets/Sources/exe/main.swift: -------------------------------------------------------------------------------- 1 | import swiftLib 2 | import cLib 3 | 4 | cPrint(1) 5 | swiftPrint(value: 2) 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LTO/SwiftAndCTargets/Sources/swiftLib/swiftLib.swift: -------------------------------------------------------------------------------- 1 | public func swiftPrint(value: Int) { 2 | print("swift value: \(value)") 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LibraryEvolution/Sources/A/A.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/LibraryEvolution/Sources/A/A.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LibraryEvolution/Sources/B/B.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/LibraryEvolution/Sources/B/B.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LocalPackageAsURL/Bar/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.1 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Bar", 6 | dependencies: [ 7 | .package(url: "../Foo", from: "1.0.0"), 8 | ], 9 | targets: [ 10 | .target(name: "Bar", dependencies: ["Foo"], path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LocalPackageAsURL/Bar/main.swift: -------------------------------------------------------------------------------- 1 | import Foo 2 | 3 | foo() 4 | print("here") 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LocalPackageAsURL/Foo/Foo.swift: -------------------------------------------------------------------------------- 1 | public func foo() { 2 | {}() 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/LocalPackageAsURL/Foo/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Foo", 6 | products: [ 7 | .library(name: "Foo", targets: ["Foo"]), 8 | ], 9 | targets: [ 10 | .target(name: "Foo", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/MissingDependency/Bar/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Bar", 6 | dependencies: [ 7 | .package(url: "../NonExistentPackage", from: "1.0.0"), 8 | ], 9 | targets: [ 10 | .target(name: "Bar", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/MissingDependency/Bar/main.swift: -------------------------------------------------------------------------------- 1 | import Foo 2 | 3 | foo() 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/MultipleExecutables/Sources/exec1/main.swift: -------------------------------------------------------------------------------- 1 | print("1") -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/MultipleExecutables/Sources/exec2/main.swift: -------------------------------------------------------------------------------- 1 | print("2") -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/MultipleExecutables/Sources/lib1/lib.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/MultipleExecutables/Sources/lib1/lib.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageEdit/bar/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageEdit/bar/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "bar", 6 | products: [ 7 | .library(name: "bar", targets: ["bar"]), 8 | ], 9 | targets: [ 10 | .target(name: "bar", path: "Sources"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageEdit/bar/Sources/bar.swift: -------------------------------------------------------------------------------- 1 | public let theValue = 5 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageEdit/baz/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageEdit/baz/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "baz", 6 | products: [ 7 | .library(name: "baz", targets: ["baz"]), 8 | ], 9 | targets: [ 10 | .target(name: "baz", path: "Sources"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageEdit/baz/Sources/baz.swift: -------------------------------------------------------------------------------- 1 | struct baz { 2 | 3 | var text = "Hello, World!" 4 | } 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageEdit/foo/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageEdit/foo/Sources/main.swift: -------------------------------------------------------------------------------- 1 | import bar 2 | print(bar.theValue) 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageNameFlag/appPkg/Sources/App/file.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/PackageNameFlag/appPkg/Sources/App/file.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageNameFlag/appPkg/Sources/exe/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/PackageNameFlag/appPkg/Sources/exe/main.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageNameFlag/barPkg/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.8 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "barPkg", 6 | products: [ 7 | .library(name: "Bar", targets: ["Bar"]), 8 | ], 9 | targets: [ 10 | .target(name: "Bar", dependencies: ["Baz"]), 11 | .target(name: "Baz"), 12 | ] 13 | ) 14 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageNameFlag/barPkg/Sources/Bar/file.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/PackageNameFlag/barPkg/Sources/Bar/file.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageNameFlag/barPkg/Sources/Baz/file.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/PackageNameFlag/barPkg/Sources/Baz/file.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageNameFlag/fooPkg/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.9 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "fooPkg", 6 | products: [ 7 | .library(name: "Foo", targets: ["Foo"]), 8 | ], 9 | targets: [ 10 | .target(name: "Foo", dependencies: ["Zoo"]), 11 | .target(name: "Zoo"), 12 | ] 13 | ) 14 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageNameFlag/fooPkg/Sources/Foo/file.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/PackageNameFlag/fooPkg/Sources/Foo/file.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageNameFlag/fooPkg/Sources/Zoo/file.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/PackageNameFlag/fooPkg/Sources/Zoo/file.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageWithMalformedLibraryProduct/Sources/PackageWithMalformedLibraryProduct/main.swift: -------------------------------------------------------------------------------- 1 | print("Hello World") -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageWithNonc99NameModules/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "PackageWithNonc99NameModules", 6 | targets: [ 7 | .target(name: "A-B", dependencies: ["B-C"]), 8 | .target(name: "B-C", dependencies: []), 9 | .target(name: "C D", dependencies: []), 10 | ] 11 | ) 12 | 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageWithNonc99NameModules/Sources/A-B/ab.swift: -------------------------------------------------------------------------------- 1 | import B_C 2 | 3 | func ab() { 4 | bc() 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageWithNonc99NameModules/Sources/B-C/bc.swift: -------------------------------------------------------------------------------- 1 | public func bc() { 2 | } 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PackageWithNonc99NameModules/Sources/C D/cd.swift: -------------------------------------------------------------------------------- 1 | public func bc() { 2 | } 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ParallelTestsPkg/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ParallelTestsPkg/Sources/ParallelTestsPkg/ParallelTestsPkg.swift: -------------------------------------------------------------------------------- 1 | struct ParallelTests { 2 | 3 | var text = "Hello, World!" 4 | var bool = false 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ParallelTestsPkg/Tests/ParallelTestsPkgTests/ParallelTestsFailureTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import ParallelTestsPkg 3 | 4 | class ParallelTestsFailureTests: XCTestCase { 5 | 6 | func testSureFailure() { 7 | XCTFail("Giving up is the only sure way to fail.") 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ParallelTestsPkg/Tests/ParallelTestsPkgTests/ParallelTestsTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import ParallelTestsPkg 3 | 4 | class ParallelTestsTests: XCTestCase { 5 | 6 | func testExample1() { 7 | XCTAssertEqual(ParallelTests().text, "Hello, World!") 8 | } 9 | 10 | func testExample2() { 11 | XCTAssertEqual(ParallelTests().bool, false) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ParseableInterfaces/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "ParseableInterfaces", 6 | products: [ 7 | ], 8 | targets: [ 9 | .target(name: "A", dependencies: []), 10 | .target(name: "B", dependencies: ["A"]), 11 | ]) 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ParseableInterfaces/Sources/A/A.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/ParseableInterfaces/Sources/A/A.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ParseableInterfaces/Sources/B/B.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/ParseableInterfaces/Sources/B/B.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PkgConfig/CSystemModule/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "CSystemModule", 6 | pkgConfig: "libSystemModule", 7 | providers: [ 8 | .brew(["SystemModule"]), 9 | ] 10 | ) 11 | 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PkgConfig/CSystemModule/module.modulemap: -------------------------------------------------------------------------------- 1 | module CSystemModule { 2 | header "shim.h" 3 | link "SystemModule" 4 | export * 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PkgConfig/CSystemModule/shim.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PkgConfig/SystemModule/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "SystemModule", 6 | products: [ 7 | .library(name: "SystemModule", targets: ["SystemModule"]), 8 | ], 9 | targets: [ 10 | .target(name: "SystemModule", path: "Sources"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PkgConfig/SystemModule/Sources/SystemModule.c: -------------------------------------------------------------------------------- 1 | int foo() { 2 | int a = 5; 3 | int b = a; 4 | a = b; 5 | return a; 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PkgConfig/SystemModule/Sources/include/SystemModule.h: -------------------------------------------------------------------------------- 1 | int foo(); 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PkgConfig/SystemModuleUser/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "SystemModuleUser", 6 | dependencies: [ 7 | .package(url: "../CSystemModule", from: "1.0.0"), 8 | ], 9 | targets: [ 10 | .target(name: "SystemModuleUser", path: "Sources"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PkgConfig/SystemModuleUser/Sources/main.swift: -------------------------------------------------------------------------------- 1 | import CSystemModule 2 | 3 | print("\(foo())") 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PkgConfig/SystemModuleUserClang/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "SystemModuleUserClang", 6 | dependencies: [ 7 | .package(url: "../CSystemModule", from: "1.0.0"), 8 | ], 9 | targets: [ 10 | .target(name: "SystemModuleUserClang", path: "Sources"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PkgConfig/SystemModuleUserClang/Sources/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() { 5 | printf("%d", foo()); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/PluginGeneratedResources/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 6.0 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "PluginGeneratedResources", 7 | targets: [ 8 | .executableTarget(name: "PluginGeneratedResources", plugins: ["Generator"]), 9 | .plugin(name: "Generator", capability: .buildTool()), 10 | ] 11 | ) 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/AmbiguousCommands/Dependencies/A/Plugins/A.swift: -------------------------------------------------------------------------------- 1 | import PackagePlugin 2 | 3 | @main 4 | struct A: CommandPlugin { 5 | func performCommand(context: PluginContext, arguments: [String]) async throws { 6 | print("Hello A!") 7 | } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/AmbiguousCommands/Dependencies/B/Plugins/B.swift: -------------------------------------------------------------------------------- 1 | import PackagePlugin 2 | 3 | @main 4 | struct B: CommandPlugin { 5 | func performCommand(context: PluginContext, arguments: [String]) async throws { 6 | print("Hello B!") 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/AmbiguousCommands/Sources/main.swift: -------------------------------------------------------------------------------- 1 | print("Hello, world!") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/BinaryToolProductPlugin/Sources/MyLocalTool/foo.dat: -------------------------------------------------------------------------------- 1 | let foo = "I am Foo!" 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/BinaryToolProductPlugin/Sources/MyLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | print("Generated string Foo: '\(foo)'") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/ClientOfPluginWithInternalExecutable/Sources/RootTarget/foo.dat: -------------------------------------------------------------------------------- 1 | I am Foo! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/ClientOfPluginWithInternalExecutable/Sources/RootTarget/main.swift: -------------------------------------------------------------------------------- 1 | print("Generated string Foo: '\(foo)'") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/CommandPluginTestStub/Sources/InternalModule/InternalModule.swift: -------------------------------------------------------------------------------- 1 | internal func internalFunction() { 2 | print("Internal function") 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/CommandPluginTestStub/Sources/placeholder/main.swift: -------------------------------------------------------------------------------- 1 | // The Swift Programming Language 2 | // https://docs.swift.org/swift-book 3 | 4 | print("Hello, world from executable target!") 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/CommandPluginTestStub/Sources/plugintool/main.swift: -------------------------------------------------------------------------------- 1 | print("Hello from plugintool") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/CommandPluginTestStub/Tests/InternalModuleTests/InternalModuleTests.swift: -------------------------------------------------------------------------------- 1 | @testable import InternalModule 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/ContrivedTestPlugin/Sources/MyLocalTool/bar.dat: -------------------------------------------------------------------------------- 1 | I am Bar! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/ContrivedTestPlugin/Sources/MyLocalTool/foo.dat: -------------------------------------------------------------------------------- 1 | I am Foo! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/ContrivedTestPlugin/Sources/MyLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | print("Generated string Foo: '\(PREFIX_foo)'") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/ContrivedTestPlugin/Sources/libpcre/module.modulemap: -------------------------------------------------------------------------------- 1 | module readline [system] { 2 | header "sdk_libpcre.h" 3 | link "libpcre" 4 | export * 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/ContrivedTestPlugin/Sources/libpcre/sdk_libpcre.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/DependentPlugins/Sources/MyClient/client.swift: -------------------------------------------------------------------------------- 1 | @main 2 | struct Client { 3 | static func main() throws { 4 | print(MyGeneratedStruct.message) 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/DependentPlugins/Sources/MyExecutable2/tool.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @main 4 | struct Tool { 5 | static func main() async throws { 6 | let path = CommandLine.arguments[2] 7 | print("Printing file at \(path)") 8 | print(try String(contentsOfFile: path)) 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/IncorrectDependencies/Sources/MyExecutable/MyExecutable.swift: -------------------------------------------------------------------------------- 1 | import MyLibrary 2 | 3 | @main 4 | struct MyExecutable { 5 | static func main() async throws { 6 | print("Hello from executable.") 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/IncorrectDependencies/Sources/MyLibrary/Empty.swift: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/IncorrectDependencies/Sources/MyPluginExecutable/MyPluginExecutable.swift: -------------------------------------------------------------------------------- 1 | @main 2 | struct MyExecutable { 3 | static func main() async throws { 4 | print("Hello from plugin executable.") 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/IncorrectDependencies/Tests/MyExecutableTests/MyExecutableTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import MyExecutable 3 | 4 | final class MyExecutableTests: XCTestCase { 5 | func test() throws { 6 | XCTAssertTrue(true) 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/InvalidUseOfInternalPluginExecutable/Sources/RootTarget/foo.dat: -------------------------------------------------------------------------------- 1 | I am Foo! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/InvalidUseOfInternalPluginExecutable/Sources/RootTarget/main.swift: -------------------------------------------------------------------------------- 1 | print("Generated string Foo: '\(foo)'") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/LibraryWithLocalBuildToolPluginUsingRemoteTool/Sources/MyLibrary/generated.dat: -------------------------------------------------------------------------------- 1 | I am Foo! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/LibraryWithLocalBuildToolPluginUsingRemoteTool/Sources/MyLibrary/library.swift: -------------------------------------------------------------------------------- 1 | public func GetGeneratedString() -> String { 2 | return "Generated string: \(generated)" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/LibraryWithLocalBuildToolPluginUsingRemoteTool/Tests/MyLibraryTests/test.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import MyLibrary 3 | 4 | final class MyLibraryTests: XCTestCase { 5 | 6 | func testLibrary() throws { 7 | XCTAssertEqual(GetGeneratedString(), "Generated string: 4920616d20466f6f210a") 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MissingPlugin/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.7 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "MissingPlugin", 7 | targets: [ 8 | .target(name: "MissingPlugin", plugins: ["NonExistingPlugin"]), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MissingPlugin/Sources/MissingPlugin/MissingPlugin.swift: -------------------------------------------------------------------------------- 1 | public struct MissingPlugin { 2 | public private(set) var text = "Hello, World!" 3 | 4 | public init() { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MyBinaryToolPlugin/Sources/MyLocalTool/foo.dat: -------------------------------------------------------------------------------- 1 | let foo = "I am Foo!" 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MyBinaryToolPlugin/Sources/MyLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | print("Generated string Foo: '\(foo)'") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MyBuildToolPluginDependencies/Sources/MyLocalTool/foo.dat: -------------------------------------------------------------------------------- 1 | let foo = "I am Foo!" 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MyBuildToolPluginDependencies/Sources/MyLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | print("Generated string Foo: '\(foo)'") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MyBuildToolPluginDependencies/Sources/MySourceGenBuildToolLib/library.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension String { 4 | 5 | public var quotedForSourceCode: String { 6 | return "\"" + self 7 | .replacingOccurrences(of: "\\", with: "\\\\") 8 | .replacingOccurrences(of: "\"", with: "\\\"") 9 | + "\"" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenClient/Sources/MyTool/foo.dat: -------------------------------------------------------------------------------- 1 | I am Foo! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenClient/Sources/MyTool/main.swift: -------------------------------------------------------------------------------- 1 | print("Generated string Foo: '\(foo)'") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPlugin/Sources/MyLocalTool/foo.dat: -------------------------------------------------------------------------------- 1 | I am Foo! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPlugin/Sources/MyLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | print("Generated string Foo: '\(foo)'") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPlugin/Sources/MyOtherLocalTool/bar.dat: -------------------------------------------------------------------------------- 1 | I am Bar! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPlugin/Sources/MyOtherLocalTool/baz.dat: -------------------------------------------------------------------------------- 1 | I am Baz! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPlugin/Sources/MyOtherLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | // print("Generated string Bar: '\(bar)'") 2 | // print("Generated string Baz: '\(baz)'") 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPlugin/Sources/MySourceGenBuildToolLib/library.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension String { 4 | 5 | public var quotedForSourceCode: String { 6 | return "\"" + self 7 | .replacingOccurrences(of: "\\", with: "\\\\") 8 | .replacingOccurrences(of: "\"", with: "\\\"") 9 | + "\"" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPlugin/Sources/MySourceGenRuntimeLib/library.swift: -------------------------------------------------------------------------------- 1 | public func GetLibraryName() -> String { 2 | return "MySourceGenRuntimeLib" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginNoPreBuildCommands/Sources/MyLocalTool/foo.dat: -------------------------------------------------------------------------------- 1 | I am Foo! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginNoPreBuildCommands/Sources/MyLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | print("Generated string Foo: '\(foo)'") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginNoPreBuildCommands/Sources/MyOtherLocalTool/bar.dat: -------------------------------------------------------------------------------- 1 | I am Bar! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginNoPreBuildCommands/Sources/MyOtherLocalTool/baz.dat: -------------------------------------------------------------------------------- 1 | I am Baz! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginNoPreBuildCommands/Sources/MyOtherLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | // print("Generated string Bar: '\(bar)'") 2 | // print("Generated string Baz: '\(baz)'") 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginNoPreBuildCommands/Sources/MySourceGenBuildToolLib/library.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension String { 4 | 5 | public var quotedForSourceCode: String { 6 | return "\"" + self 7 | .replacingOccurrences(of: "\\", with: "\\\\") 8 | .replacingOccurrences(of: "\"", with: "\\\"") 9 | + "\"" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginNoPreBuildCommands/Sources/MySourceGenRuntimeLib/library.swift: -------------------------------------------------------------------------------- 1 | public func GetLibraryName() -> String { 2 | return "MySourceGenRuntimeLib" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginNoPreBuildCommands/Tests/MySourceGenPluginNoPreBuildCommandsTests/lunch.txt: -------------------------------------------------------------------------------- 1 | coffee 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginUsingURLBasedAPI/Sources/MyLocalTool/foo.dat: -------------------------------------------------------------------------------- 1 | I am Foo! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginUsingURLBasedAPI/Sources/MyLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | print("Generated string Foo: '\(foo)'") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginUsingURLBasedAPI/Sources/MyOtherLocalTool/bar.dat: -------------------------------------------------------------------------------- 1 | I am Bar! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginUsingURLBasedAPI/Sources/MyOtherLocalTool/baz.dat: -------------------------------------------------------------------------------- 1 | I am Baz! 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginUsingURLBasedAPI/Sources/MyOtherLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | // print("Generated string Bar: '\(bar)'") 2 | // print("Generated string Baz: '\(baz)'") 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginUsingURLBasedAPI/Sources/MySourceGenBuildToolLib/library.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension String { 4 | 5 | public var quotedForSourceCode: String { 6 | return "\"" + self 7 | .replacingOccurrences(of: "\\", with: "\\\\") 8 | .replacingOccurrences(of: "\"", with: "\\\"") 9 | + "\"" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/MySourceGenPluginUsingURLBasedAPI/Sources/MySourceGenRuntimeLib/library.swift: -------------------------------------------------------------------------------- 1 | public func GetLibraryName() -> String { 2 | return "MySourceGenRuntimeLib" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/PluginCanBeReferencedByProductName/Sources/Exec/main.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | let output = ProcessInfo.processInfo.arguments[1] 4 | try "let stringConstant = \"Hello, World!\"".write(to: URL(fileURLWithPath: output), atomically: true, encoding: .utf8) 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/PluginCanBeReferencedByProductName/Sources/PluginCanBeReferencedByProductName/PluginCanBeReferencedByProductName.swift: -------------------------------------------------------------------------------- 1 | public struct PluginCanBeReferencedByProductName { 2 | public private(set) var text = stringConstant 3 | 4 | public init() { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/PluginUsingLocalAndRemoteTool/MyLibrary/Sources/MyLibrary/library.swift: -------------------------------------------------------------------------------- 1 | public func Foo() -> String { 2 | return "Foo" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/PluginUsingLocalAndRemoteTool/MyLibrary/Tests/MyLibraryTests/test.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import MyLibrary 3 | 4 | final class MyLibraryTests: XCTestCase { 5 | 6 | func testLibrary() throws { 7 | XCTAssertEqual(Foo(), "Foo") 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/PluginUsingLocalAndRemoteTool/MyPlugin/Libraries/LocalToolHelperLibrary/library.swift: -------------------------------------------------------------------------------- 1 | public func LocalToolHelperFunction() -> String { 2 | return "local" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/PluginUsingLocalAndRemoteTool/MyPlugin/Tools/ImpliedLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | import LocalToolHelperLibrary 2 | 3 | print("A message from the implied \(LocalToolHelperFunction()) tool.") 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/PluginUsingLocalAndRemoteTool/MyPlugin/Tools/LocalTool/main.swift: -------------------------------------------------------------------------------- 1 | import LocalToolHelperLibrary 2 | 3 | print("A message from the \(LocalToolHelperFunction()) tool.") 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/PluginUsingLocalAndRemoteTool/RemoteTool/Libraries/RemoteToolHelperLibrary/library.swift: -------------------------------------------------------------------------------- 1 | public func RemoteToolHelperLibraryFunction() -> String { 2 | return "remote" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/PluginUsingLocalAndRemoteTool/RemoteTool/Tools/RemoteTool/main.swift: -------------------------------------------------------------------------------- 1 | import RemoteToolHelperLibrary 2 | 3 | print("A message from the \(RemoteToolHelperLibraryFunction()) tool.") 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/PluginWithInternalExecutable/Sources/PluginExecutable/Utilities.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension String { 4 | 5 | var quotedForSourceCode: String { 6 | return "\"" + self 7 | .replacingOccurrences(of: "\\", with: "\\\\") 8 | .replacingOccurrences(of: "\"", with: "\\\"") 9 | + "\"" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/PluginsAndSnippets/Snippets/MySnippet.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/Plugins/PluginsAndSnippets/Snippets/MySnippet.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/SandboxTesterPlugin/Sources/MyLocalTool/main.swift: -------------------------------------------------------------------------------- 1 | print("Hello plugin") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/SandboxViolatingBuildToolPluginCommands/MyLibrary/Sources/MyLibrary/library.swift: -------------------------------------------------------------------------------- 1 | public func MyLibraryStruct() -> String { 2 | return "This is \(foo)" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/TransitivePluginOnlyDependency/Dependencies/Library/Sources/Library/Library.swift: -------------------------------------------------------------------------------- 1 | public struct Library { 2 | public private(set) var text = "Hello, World!" 3 | 4 | public init() { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/TransitivePluginOnlyDependency/Dependencies/PluginOnly/Plugins/MyPlugin/plugin.swift: -------------------------------------------------------------------------------- 1 | import PackagePlugin 2 | 3 | @main 4 | struct MyPlugin: BuildToolPlugin { 5 | func createBuildCommands(context: PackagePlugin.PluginContext, target: PackagePlugin.Target) async throws -> [PackagePlugin.Command] { 6 | return [] 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Plugins/TransitivePluginOnlyDependency/Sources/TransitivePluginOnlyDependency/TransitivePluginOnlyDependency.swift: -------------------------------------------------------------------------------- 1 | public struct TransitivePluginOnlyDependency { 2 | public private(set) var text = "Hello, World!" 3 | 4 | public init() { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/RootPackageWithConditionals/Sources/client/client.swift: -------------------------------------------------------------------------------- 1 | public struct client { 2 | public private(set) var text = "Hello, World!" 3 | 4 | public init() { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/RootPackageWithConditionals/Sources/linuxOnly/linuxOnly.swift: -------------------------------------------------------------------------------- 1 | public struct linuxOnly { 2 | public private(set) var text = "Hello, World!" 3 | 4 | public init() { 5 | #if os(Linux) 6 | print("bestOS") 7 | #else 8 | #error("not linux") 9 | #endif 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ShowExecutables/app/main.swift: -------------------------------------------------------------------------------- 1 | print("I'm the dealer") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/ShowExecutables/deck-of-playing-cards/main.swift: -------------------------------------------------------------------------------- 1 | print("I'm a deck of cards") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Simple/Foo.swift: -------------------------------------------------------------------------------- 1 | public func foo() { 2 | {}() 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Simple/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Foo", 6 | products: [ 7 | .library(name: "Foo", targets: ["Foo"]), 8 | ], 9 | targets: [ 10 | .target(name: "Foo", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SkipTests/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SkipTests/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Example", 6 | targets: [ 7 | .target( 8 | name: "Example", 9 | dependencies: []), 10 | .testTarget( 11 | name: "ExampleTests", 12 | dependencies: ["Example"]), 13 | ] 14 | ) 15 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SkipTests/Sources/Example/Example.swift: -------------------------------------------------------------------------------- 1 | struct Example { 2 | var text = "Hello, World!" 3 | var bool = false 4 | } 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SkipTests/Tests/ExampleTests/MoreTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Example 3 | 4 | class MoreTests: XCTestCase { 5 | func testExample3() { 6 | XCTAssertEqual(Example().text, "Hello, World!") 7 | } 8 | 9 | func testExample4() { 10 | XCTAssertEqual(Example().bool, false) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SkipTests/Tests/ExampleTests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Example 3 | 4 | class SomeTests: XCTestCase { 5 | func testExample1() { 6 | XCTAssertEqual(Example().text, "Hello, World!") 7 | } 8 | 9 | func testExample2() { 10 | XCTAssertEqual(Example().bool, false) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Spaces Fixture/Sources/Module Name 1/Foo.swift: -------------------------------------------------------------------------------- 1 | public class Foo { 2 | var bar: Int = 0 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Spaces Fixture/Sources/Module Name 2/main.swift: -------------------------------------------------------------------------------- 1 | import Module_Name_1 2 | 3 | public class Foo { 4 | var bar: Int = 0 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SwiftPMXCTestHelper/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SwiftPMXCTestHelper/Sources/SwiftPMXCTestHelper.swift: -------------------------------------------------------------------------------- 1 | struct SwiftPMXCTestHelper { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SwiftPMXCTestHelper/Tests/ObjCTests/ObjCTests.m: -------------------------------------------------------------------------------- 1 | @import XCTest; 2 | 3 | @interface ObjCTests: XCTestCase 4 | @end 5 | 6 | @implementation ObjCTests 7 | 8 | - (void)testThisThing { 9 | } 10 | 11 | - (void)test_example { 12 | } 13 | 14 | - (void)nonTest { 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SwiftRun/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.6 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "TestableExe", 6 | targets: [ 7 | .executableTarget( 8 | name: "Test", 9 | path: "." 10 | ), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SwiftRun/main.swift: -------------------------------------------------------------------------------- 1 | print("done") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SystemModules/CFake/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "CFake" 6 | ) 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SystemModules/CFake/module.modulemap: -------------------------------------------------------------------------------- 1 | module CFake [system] { 2 | header "/tmp/fake.h" 3 | link "fake" 4 | export * 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SystemModules/TestExec/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "TestExec", 6 | dependencies: [ 7 | .package(url: "../CFake", from: "1.0.0"), 8 | ], 9 | targets: [ 10 | .target(name: "TestExec", path: "Sources"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/SystemModules/TestExec/Sources/main.swift: -------------------------------------------------------------------------------- 1 | import CFake 2 | 3 | print("Hello, \(GetFakeString())!") 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TargetMismatch/Sources/Sample/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Miscellaneous/TargetMismatch/Sources/Sample/main.swift -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TargetPackageAccess/libPkg/Sources/Core/Core.swift: -------------------------------------------------------------------------------- 1 | import DataManager 2 | 3 | public struct PublicCore { 4 | public let publicVar: Int 5 | public init(publicVar: Int) { 6 | self.publicVar = publicVar 7 | } 8 | public func publicCoreFunc() { 9 | managePublicFunc() 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TargetPackageAccess/libPkg/Sources/DataManager/File.swift: -------------------------------------------------------------------------------- 1 | import DataModel 2 | 3 | public func managePublicFunc() -> PublicData? { 4 | return nil 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TargetPackageAccess/libPkg/Sources/DataModel/File.swift: -------------------------------------------------------------------------------- 1 | public class PublicData {} 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TargetPackageAccess/libPkg/Sources/ExampleApp/main.swift: -------------------------------------------------------------------------------- 1 | import MainLib 2 | 3 | publicFunc() 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TargetPackageAccess/libPkg/Sources/MainLib/Lib.swift: -------------------------------------------------------------------------------- 1 | import Core 2 | 3 | public func publicFunc() -> Int { 4 | print("public decl") 5 | return PublicCore(publicVar: 10).publicVar 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TargetPackageAccess/libPkg/Tests/BlackBoxTests/BlackBoxTests.swift: -------------------------------------------------------------------------------- 1 | import MainLib 2 | import XCTest 3 | 4 | class BlackBoxTests: XCTestCase { 5 | func testBlackBox() { 6 | let x = publicFunc() 7 | XCTAssertTrue(x > 0) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TargetPackageAccess/libPkg/Tests/MainLibTests/MainLibTests.swift: -------------------------------------------------------------------------------- 1 | import MainLib 2 | import XCTest 3 | 4 | class TestMainLib: XCTestCase { 5 | func testMainLib() { 6 | let x = publicFunc() 7 | XCTAssertTrue(x > 0) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Async/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Async", 6 | targets: [ 7 | .target(name: "Async"), 8 | .testTarget(name: "AsyncTests", dependencies: ["Async"]), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Async/Sources/Async/Async.swift: -------------------------------------------------------------------------------- 1 | struct Async { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Deprecation/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Simple", 6 | targets: [ 7 | .target(name: "Simple"), 8 | .testTarget(name: "SimpleTests", dependencies: ["Simple"]), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Deprecation/Sources/Simple/Simple.swift: -------------------------------------------------------------------------------- 1 | struct Simple { 2 | func hello() {} 3 | 4 | @available(*, deprecated, message: "use hello instead") 5 | func deprecatedHello() {} 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Deprecation/Tests/SimpleTests/SwiftTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Simple 3 | 4 | class SimpleTests: XCTestCase { 5 | func testHello() { 6 | Simple().hello() 7 | } 8 | 9 | @available(*, deprecated, message: "testing deprecated API") 10 | func testDeprecatedHello() { 11 | Simple().deprecatedHello() 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Extensions/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Simple", 6 | targets: [ 7 | .target(name: "Simple"), 8 | .testTarget(name: "SimpleTests", dependencies: ["Simple"]), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Extensions/Sources/Simple/Simple.swift: -------------------------------------------------------------------------------- 1 | struct Simple { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Extensions/Tests/SimpleTests/SwiftTests1.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Simple 3 | 4 | class SimpleTests1: XCTestCase { 5 | func testExample1() { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Extensions/Tests/SimpleTests/SwiftTests2.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Simple 3 | 4 | class SimpleTests2: XCTestCase { 5 | func testExample2() { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Extensions/Tests/SimpleTests/SwiftTests3.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Simple 3 | 4 | extension SimpleTests1 { 5 | func testExample1_a() { 6 | } 7 | } 8 | 9 | extension SimpleTests2 { 10 | func testExample2_a() { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Extensions/Tests/SimpleTests/SwiftTests4.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Simple 3 | 4 | class SimpleTests4: XCTestCase { 5 | func testExample() { 6 | } 7 | 8 | func testExample1() { 9 | } 10 | 11 | func testExample2() { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/IgnoresLinuxMain/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.10 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "IgnoresLinuxMain", 6 | targets: [ 7 | .testTarget(name: "IgnoresLinuxMainTests"), 8 | ] 9 | ) 10 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/IgnoresLinuxMain/Tests/IgnoresLinuxMainTests/SomeTest.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | final class SomeTests: XCTestCase { 4 | func testSomething() {} 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/IgnoresLinuxMain/Tests/LinuxMain.swift: -------------------------------------------------------------------------------- 1 | fatalError("Should not use the contents of LinuxMain.swift") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/NoTests/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Simple", 6 | targets: [ 7 | .target(name: "Simple"), 8 | .testTarget(name: "SimpleTests", dependencies: ["Simple"]), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/NoTests/Sources/Simple/Simple.swift: -------------------------------------------------------------------------------- 1 | struct Simple { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/NoTests/Tests/SimpleTests/SwiftTests.swift: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Simple/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.8 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Simple", 6 | targets: [ 7 | .target(name: "Simple", plugins: ["SimplePlugin"]), 8 | .testTarget(name: "SimpleTests", dependencies: ["Simple"]), 9 | .plugin(name: "SimplePlugin", capability: .buildTool()), 10 | ] 11 | ) 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Simple/Plugins/SimplePlugin/plugin.swift: -------------------------------------------------------------------------------- 1 | import PackagePlugin 2 | 3 | @main 4 | struct Simple: BuildToolPlugin { 5 | func createBuildCommands(context: PackagePlugin.PluginContext, target: PackagePlugin.Target) async throws -> [PackagePlugin.Command] { 6 | return [] 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Simple/Sources/Simple/Simple.swift: -------------------------------------------------------------------------------- 1 | struct Simple { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Subclass/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.6 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Subclass", 6 | targets: [ 7 | .target(name: "Subclass"), 8 | .testTarget(name: "Module1Tests", dependencies: ["Subclass"]), 9 | .testTarget(name: "Module2Tests", dependencies: ["Subclass"]), 10 | ] 11 | ) 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Subclass/Sources/Subclass/Subclass.swift: -------------------------------------------------------------------------------- 1 | struct Subclass { 2 | } 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Subclass/Tests/Module1Tests/Tests1.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | class Tests1: XCTestCase { 4 | func test11() { 5 | print("->Module1::Tests1::test11") 6 | } 7 | 8 | func test12() { 9 | print("->Module1::Tests1::test12") 10 | } 11 | 12 | func test13() { 13 | print("->Module1::Tests1::test13") 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/Subclass/Tests/Module2Tests/Test1.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | class Tests1: XCTestCase { 4 | func test11() { 5 | print("->Module2::Tests1::test11") 6 | } 7 | 8 | func test12() { 9 | print("->Module2::Tests1::test12") 10 | } 11 | 12 | func test13() { 13 | print("->Module2::Tests1::test13") 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/SwiftTesting/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 6.0 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "SwiftTesting", 6 | targets: [ 7 | .testTarget(name: "SwiftTestingTests"), 8 | ] 9 | ) 10 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/SwiftTesting/Sources/SwiftTesting/SwiftTesting.swift: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/SwiftTesting/Tests/SwiftTestingTests/SwiftTestingTests.swift: -------------------------------------------------------------------------------- 1 | import Testing 2 | @Test("SOME TEST FUNCTION") func someTestFunction() {} 3 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestDiscovery/hello world/Sources/hello world/hello world.swift: -------------------------------------------------------------------------------- 1 | struct hello_world { 2 | var text = "Hello, World!" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestSingleFailureSwiftTesting/Tests/TestFailuresSwiftTestingTests/TestFailuresSwiftTestingTests.swift: -------------------------------------------------------------------------------- 1 | import Testing 2 | 3 | @Test func example() async throws { 4 | #expect(Bool(false), "Purposely failing & validating XML espace \"'<>") 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestSingleFailureXCTest/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.9 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. 3 | 4 | import PackageDescription 5 | 6 | let package = Package( 7 | name: "TestFailures", 8 | targets: [ 9 | .testTarget( 10 | name: "TestFailuresTests" 11 | ) 12 | ] 13 | ) 14 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestSingleFailureXCTest/Tests/TestFailuresTests/TestFailuresTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | final class TestFailuresTests: XCTestCase { 4 | func testExample() throws { 5 | XCTAssertFalse(true, "Purposely failing & validating XML espace \"'<>") 6 | } 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestableAsyncExe/Sources/TestableAsyncExe1/main.swift: -------------------------------------------------------------------------------- 1 | public func GetAsyncGreeting1() async -> String { 2 | return "Hello, async world" 3 | } 4 | 5 | await print("\(GetAsyncGreeting1())!") 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestableAsyncExe/Sources/TestableAsyncExe2/main.swift: -------------------------------------------------------------------------------- 1 | public func GetAsyncGreeting2() async -> String { 2 | return "Hello, async planet" 3 | } 4 | 5 | await print("\(GetAsyncGreeting2())!") 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestableAsyncExe/Sources/TestableAsyncExe3/NonMain.swift: -------------------------------------------------------------------------------- 1 | @main 2 | struct AsyncMain3 { 3 | static func main() async { 4 | print(await getGreeting3()) 5 | } 6 | 7 | static func getGreeting3() async -> String { 8 | return "Hello, async galaxy" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestableAsyncExe/Sources/TestableAsyncExe4/NonMain.swift: -------------------------------------------------------------------------------- 1 | @main 2 | struct AsyncMain4 { 3 | static func main() async { 4 | print(await getGreeting4()) 5 | } 6 | 7 | static func getGreeting4() async -> String { 8 | return "Hello, async universe" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestableExe/Sources/TestableExe1/main.swift: -------------------------------------------------------------------------------- 1 | public func GetGreeting1() -> String { 2 | return "Hello, world" 3 | } 4 | 5 | print("\(GetGreeting1())!") 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestableExe/Sources/TestableExe2/main.swift: -------------------------------------------------------------------------------- 1 | public func GetGreeting2() -> String { 2 | return "Hello, planet" 3 | } 4 | 5 | print("\(GetGreeting2())!") 6 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestableExe/Sources/TestableExe3/include/TestableExe3.h: -------------------------------------------------------------------------------- 1 | const char * GetGreeting3(); -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/TestableExe/Sources/TestableExe3/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "include/TestableExe3.h" 3 | 4 | const char * GetGreeting3() { 5 | return "Hello, universe"; 6 | } 7 | 8 | int main() { 9 | printf("%s!\n", GetGreeting3()); 10 | } 11 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Unicode/Sources/πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄/πשּׁµ𝄞🇺🇳x̱̱̱̱̱̄̄̄̄̄.swift: -------------------------------------------------------------------------------- 1 | public struct πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄ { 2 | public init() {} 3 | public var πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄ = "Hello, World!" 4 | } 5 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Unicode/Sources/πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄‐tool/main.swift: -------------------------------------------------------------------------------- 1 | import π_µ_____x__________ 2 | 3 | print(πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄().πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄) 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Unicode/Tests/LinuxMain.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | import π_µ_____x__________Tests 4 | 5 | var tests = [XCTestCaseEntry]() 6 | tests += π_µ_____x__________Tests.__allTests() 7 | 8 | XCTMain(tests) 9 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/Unicode/Utilities/SomeOtherPackage/Sources/SomeOtherPackage/main.swift: -------------------------------------------------------------------------------- 1 | print("Hello, world!") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/UnicodeDependency‐πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄/README.md: -------------------------------------------------------------------------------- 1 | # UnicodeDependency‐πשּׁµ𝄞🇺🇳x̱̱̱̱̱̄̄̄̄̄ 2 | 3 | A description of this package. 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/UnicodeDependency‐πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄/Sources/UnicodeDependency‐πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄/UnicodeDependency‐πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄.swift: -------------------------------------------------------------------------------- 1 | struct UnicodeDependency_UnicodeDependency_πשּׁµ𝄞🇺🇳🇮🇱x̱̱̱̱̱̄̄̄̄̄ { 2 | var text = "Hello, World!" 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/UnreachableTargets/A/Sources/ATarget/main.swift: -------------------------------------------------------------------------------- 1 | import BTarget1 2 | 3 | BTarget1() 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/UnreachableTargets/B/Sources/BTarget1/BTarget1.swift: -------------------------------------------------------------------------------- 1 | public struct BTarget1 { 2 | public init() {} 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/UnreachableTargets/B/Sources/BTarget2/main.swift: -------------------------------------------------------------------------------- 1 | print("BTarget2") 2 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/UnreachableTargets/C/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "C", 6 | products: [ 7 | .executable(name: "cexec", targets: ["CTarget"]) 8 | ], 9 | targets: [ 10 | .target(name: "CTarget", dependencies: []) 11 | ]) 12 | -------------------------------------------------------------------------------- /Fixtures/Miscellaneous/UnreachableTargets/C/Sources/CTarget/main.swift: -------------------------------------------------------------------------------- 1 | print("CTarget") 2 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/DirectDeps1/UtilsPkg/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.5 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "UtilsPkg", 6 | products: [ 7 | .library(name: "Utils", targets: ["Utils"]), 8 | ], 9 | targets: [ 10 | .target(name: "Utils", dependencies: []), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/DirectDeps2/Apkg/Sources/AApp/main.swift: -------------------------------------------------------------------------------- 1 | import Utils 2 | 3 | utilsInA() 4 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/DirectDeps2/Apkg/Sources/Utils/File.swift: -------------------------------------------------------------------------------- 1 | public func utilsInA() { 2 | print("Utils in A") 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/DirectDeps2/Bpkg/Sources/Utils/File.swift: -------------------------------------------------------------------------------- 1 | public func utilsInB() { 2 | print("Utils in B") 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps1/APkg/Sources/A/File.swift: -------------------------------------------------------------------------------- 1 | import FooUtils 2 | import CarUtils 3 | 4 | public func funcInA() { 5 | print("func in A") 6 | utilsInB() 7 | utilsInC() 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps1/AppPkg/Sources/App/main.swift: -------------------------------------------------------------------------------- 1 | import A 2 | import X 3 | import AFooUtils 4 | import CarUtils 5 | import XFooUtils 6 | import XUtils 7 | 8 | funcInA() 9 | funcInX() 10 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps1/BPkg/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.6 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "BPkg", 6 | products: [ 7 | .library(name: "Utils", targets: ["Utils"]), 8 | ], 9 | targets: [ 10 | .target(name: "Utils", dependencies: []) 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps1/BPkg/Sources/Utils/File.swift: -------------------------------------------------------------------------------- 1 | public func utilsInB() { 2 | print("utils in B") 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps1/CPkg/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.6 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "CPkg", 6 | products: [ 7 | .library(name: "Utils", targets: ["Utils"]), 8 | ], 9 | targets: [ 10 | .target(name: "Utils", dependencies: []) 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps1/CPkg/Sources/Utils/File.swift: -------------------------------------------------------------------------------- 1 | public func utilsInC() { 2 | print("utils in C") 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps1/XPkg/Sources/Utils/File.swift: -------------------------------------------------------------------------------- 1 | public func utilsInX() { 2 | print("utils in X") 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps1/XPkg/Sources/X/File.swift: -------------------------------------------------------------------------------- 1 | import Utils 2 | import FooUtils 3 | 4 | public func funcInX() { 5 | print("func in X") 6 | utilsInX() 7 | utilsInY() 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps1/YPkg/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.6 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "YPkg", 6 | products: [ 7 | .library(name: "Utils", targets: ["Utils"]), 8 | ], 9 | targets: [ 10 | .target(name: "Utils", dependencies: []) 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps1/YPkg/Sources/Utils/File.swift: -------------------------------------------------------------------------------- 1 | public func utilsInY() { 2 | print("utils in Y") 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps2/Bpkg/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.7 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Bpkg", 6 | products: [ 7 | .library(name: "Utils", type: .static, targets: ["Utils"]), 8 | ], 9 | targets: [ 10 | .target(name: "Utils", 11 | dependencies: []), 12 | ] 13 | ) 14 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps2/Cpkg/Sources/Utils/File.swift: -------------------------------------------------------------------------------- 1 | public func funcC() { 2 | print("func C") 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/ModuleAliasing/NestedDeps2/Xpkg/Sources/Utils/File.swift: -------------------------------------------------------------------------------- 1 | public func funcX() { 2 | print("func X") 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/ModuleMaps/Direct/App/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "App", 6 | dependencies: [ 7 | .package(url: "../CFoo", from: "1.0.0"), 8 | ], 9 | targets: [ 10 | .target(name: "App", path: "./"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/ModuleMaps/Direct/App/main.swift: -------------------------------------------------------------------------------- 1 | import CFoo 2 | 3 | print(foo()) 4 | -------------------------------------------------------------------------------- /Fixtures/ModuleMaps/Direct/CFoo/C/foo.c: -------------------------------------------------------------------------------- 1 | int foo() { 2 | return 123; 3 | } 4 | -------------------------------------------------------------------------------- /Fixtures/ModuleMaps/Direct/CFoo/C/foo.h: -------------------------------------------------------------------------------- 1 | int foo(); 2 | -------------------------------------------------------------------------------- /Fixtures/ModuleMaps/Direct/CFoo/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "CFoo" 6 | ) 7 | -------------------------------------------------------------------------------- /Fixtures/ModuleMaps/Direct/CFoo/module.modulemap: -------------------------------------------------------------------------------- 1 | module CFoo { 2 | header "C/foo.h" 3 | link "foo" 4 | export * 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/ModuleMaps/Transitive/packageA/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "packageA", 6 | dependencies: [ 7 | .package(url: "../packageB", from: "1.0.0"), 8 | ], 9 | targets: [ 10 | .target(name: "packageA", dependencies: ["packageB"], path: "Sources"), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Fixtures/ModuleMaps/Transitive/packageB/.gitignore: -------------------------------------------------------------------------------- 1 | .build 2 | Packages 3 | -------------------------------------------------------------------------------- /Fixtures/ModuleMaps/Transitive/packageC/.gitignore: -------------------------------------------------------------------------------- 1 | .build 2 | Packages 3 | -------------------------------------------------------------------------------- /Fixtures/ModuleMaps/Transitive/packageD: -------------------------------------------------------------------------------- 1 | ../Direct/CFoo -------------------------------------------------------------------------------- /Fixtures/Resources/EmbedInCodeSimple/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.9 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "EmbedInCodeSimple", 7 | targets: [ 8 | .executableTarget(name: "EmbedInCodeSimple", resources: [.embedInCode("best.txt")]), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/Resources/EmbedInCodeSimple/Sources/EmbedInCodeSimple/best.txt: -------------------------------------------------------------------------------- 1 | hello world 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/EmbedInCodeSimple/Sources/EmbedInCodeSimple/main.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | print("\(String(decoding: Data(PackageResources.best_txt), as: UTF8.self))") 4 | -------------------------------------------------------------------------------- /Fixtures/Resources/FoundationlessClient/AppPkg/Sources/App/main.swift: -------------------------------------------------------------------------------- 1 | import Utils 2 | // Note the lack of 'import Foundation'. 3 | // The purpose of this fixture is to test that the following line of code 4 | // expectedly *doesn't* compile: 5 | print(FooUtils.foo.trimmingCharacters(in: .whitespaces)) 6 | -------------------------------------------------------------------------------- /Fixtures/Resources/FoundationlessClient/UtilsPkg/Sources/Utils/FooUtils.swift: -------------------------------------------------------------------------------- 1 | @frozen 2 | public enum FooUtils { } 3 | 4 | extension FooUtils { 5 | public static let foo: String = "Hello, World!" 6 | } 7 | -------------------------------------------------------------------------------- /Fixtures/Resources/FoundationlessClient/UtilsPkg/Sources/Utils/foo.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/FoundationlessClient/UtilsWithFoundationPkg/Sources/UtilsWithFoundationPkg/FooUtils.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @frozen 4 | public enum FooUtils { } 5 | 6 | extension FooUtils { 7 | public static let foo: String = "Hello, World!" 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/Resources/FoundationlessClient/UtilsWithFoundationPkg/Sources/UtilsWithFoundationPkg/foo.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/Localized/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.3 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Localized", 6 | defaultLocalization: "es", 7 | targets: [ 8 | .target(name: "exe"), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/Resources/Localized/Sources/exe/Resources/de.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | "hello_world" = "Hallo Welt!"; 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/Localized/Sources/exe/Resources/es.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | "hello_world" = "¡Hola Mundo!"; 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/Localized/Sources/exe/Resources/fr.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | "hello_world" = "Bonjour le monde !"; 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/Moved/Sources/SeaResource/foo.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/Moved/Sources/SwiftyResource/foo.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/Moved/Sources/SwiftyResource/main.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | let bundle = Bundle.module 4 | 5 | let foo = bundle.path(forResource: "foo", ofType: "txt")! 6 | let contents = FileManager.default.contents(atPath: foo)! 7 | print(String(data: contents, encoding: .utf8)!, terminator: "") 8 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/CPPResource/foo.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/ClangResource/Package.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "Package.h" 4 | 5 | @implementation Package 6 | 7 | + (NSBundle *)resourceBundle { 8 | return SWIFTPM_MODULE_BUNDLE; 9 | } 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/ClangResource/foo.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/ClangResource/include/Package.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface Package : NSObject 4 | 5 | + (NSBundle *)resourceBundle; 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/MixedClangResource/Foo.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "Foo.h" 4 | 5 | @implementation Foo 6 | @end 7 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/MixedClangResource/bar.c: -------------------------------------------------------------------------------- 1 | #include "bar.h" 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/MixedClangResource/bar.h: -------------------------------------------------------------------------------- 1 | #ifndef foo_h 2 | #define foo_h 3 | 4 | #include 5 | 6 | #endif /* foo_h */ 7 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/MixedClangResource/baz.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Resources/Simple/Sources/MixedClangResource/baz.S -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/MixedClangResource/foo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Resources/Simple/Sources/MixedClangResource/foo.txt -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/MixedClangResource/include/Foo.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface Foo : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/MixedClangResource/qux.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Resources/Simple/Sources/MixedClangResource/qux.cpp -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/SeaResource/foo.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/SwiftyResource/foo.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Sources/SwiftyResource/main.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | let bundle = Bundle.module 4 | 5 | let foo = bundle.path(forResource: "foo", ofType: "txt")! 6 | let contents = FileManager.default.contents(atPath: foo)! 7 | print(String(data: contents, encoding: .utf8)!, terminator: "") 8 | -------------------------------------------------------------------------------- /Fixtures/Resources/Simple/Tests/ClangResourceTests/ClangResourceTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @import ClangResource; 4 | 5 | @interface ClangResourceTests : XCTestCase 6 | @end 7 | 8 | @implementation ClangResourceTests 9 | 10 | - (void)testResourceBundleIsNonNil { 11 | XCTAssertNotNil([Package resourceBundle]); 12 | } 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Fixtures/Signing/Certificates/TestIntermediateCA.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Signing/Certificates/TestIntermediateCA.cer -------------------------------------------------------------------------------- /Fixtures/Signing/Certificates/TestRootCA.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Signing/Certificates/TestRootCA.cer -------------------------------------------------------------------------------- /Fixtures/Signing/Certificates/Test_ec.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Signing/Certificates/Test_ec.cer -------------------------------------------------------------------------------- /Fixtures/Signing/Certificates/Test_ec_key.p8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Signing/Certificates/Test_ec_key.p8 -------------------------------------------------------------------------------- /Fixtures/Signing/Certificates/Test_ec_key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIGfOkQcQq6oTC06KkGMVBAr2MiYFRaLo4/wKdNBpIjhnoAoGCCqGSM49 3 | AwEHoUQDQgAE6SjFVQRtU/+ywvxslaVsl+iZf65YgkQShuxsbAbNJBTVkEkMGyNL 4 | 8nbaj6B4Jskjo1loNPLirNE7mKeTLYbrcw== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /Fixtures/Signing/Certificates/Test_ec_self_signed.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Signing/Certificates/Test_ec_self_signed.cer -------------------------------------------------------------------------------- /Fixtures/Signing/Certificates/Test_ec_self_signed_key.p8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Signing/Certificates/Test_ec_self_signed_key.p8 -------------------------------------------------------------------------------- /Fixtures/Signing/Certificates/Test_rsa.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Signing/Certificates/Test_rsa.cer -------------------------------------------------------------------------------- /Fixtures/Signing/Certificates/Test_rsa_key.p8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Signing/Certificates/Test_rsa_key.p8 -------------------------------------------------------------------------------- /Fixtures/Signing/Certificates/Test_rsa_self_signed.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Signing/Certificates/Test_rsa_self_signed.cer -------------------------------------------------------------------------------- /Fixtures/Signing/Certificates/Test_rsa_self_signed_key.p8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/Signing/Certificates/Test_rsa_self_signed_key.p8 -------------------------------------------------------------------------------- /Fixtures/SwiftMigrate/ExistentialAnyMigration/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.8 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "ExistentialAnyMigration", 7 | targets: [ 8 | .target(name: "Diagnostics", path: "Sources", exclude: ["Fixed"]), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/SwiftMigrate/ExistentialAnyMigration/Sources/Fixed/Test.swift: -------------------------------------------------------------------------------- 1 | protocol P { 2 | } 3 | 4 | func test1(_: any P) { 5 | } 6 | 7 | func test2(_: (any P).Protocol) { 8 | } 9 | 10 | func test3() { 11 | let _: [(any P)?] = [] 12 | } 13 | 14 | func test4() { 15 | var x = 42 16 | } 17 | -------------------------------------------------------------------------------- /Fixtures/SwiftMigrate/ExistentialAnyMigration/Sources/Test.swift: -------------------------------------------------------------------------------- 1 | protocol P { 2 | } 3 | 4 | func test1(_: P) { 5 | } 6 | 7 | func test2(_: P.Protocol) { 8 | } 9 | 10 | func test3() { 11 | let _: [P?] = [] 12 | } 13 | 14 | func test4() { 15 | var x = 42 16 | } 17 | -------------------------------------------------------------------------------- /Fixtures/SwiftMigrate/InferIsolatedConformancesMigration/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:6.2 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "InferIsolatedConformancesMigration", 7 | targets: [ 8 | .target(name: "Diagnostics", path: "Sources", exclude: ["Fixed"]), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/SwiftMigrate/InferIsolatedConformancesMigration/Sources/Fixed/Test.swift: -------------------------------------------------------------------------------- 1 | @MainActor 2 | class C: nonisolated Equatable { 3 | let name = "Hello" 4 | 5 | nonisolated static func ==(lhs: C, rhs: C) -> Bool { 6 | lhs.name == rhs.name 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/SwiftMigrate/InferIsolatedConformancesMigration/Sources/Test.swift: -------------------------------------------------------------------------------- 1 | @MainActor 2 | class C: Equatable { 3 | let name = "Hello" 4 | 5 | nonisolated static func ==(lhs: C, rhs: C) -> Bool { 6 | lhs.name == rhs.name 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Fixtures/SwiftMigrate/StrictMemorySafetyMigration/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:6.2 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "StrictMemorySafetyMigration", 7 | targets: [ 8 | .target(name: "Diagnostics", path: "Sources", exclude: ["Fixed"]), 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Fixtures/SwiftMigrate/StrictMemorySafetyMigration/Sources/Fixed/Test.swift: -------------------------------------------------------------------------------- 1 | @unsafe func f() { } 2 | 3 | func g() { 4 | unsafe f() 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/SwiftMigrate/StrictMemorySafetyMigration/Sources/Test.swift: -------------------------------------------------------------------------------- 1 | @unsafe func f() { } 2 | 3 | func g() { 4 | f() 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/SwiftSDKs/Package.swift: -------------------------------------------------------------------------------- 1 | // This empty file tells test fixture logic to copy this directory's content to the test case temp directory. 2 | -------------------------------------------------------------------------------- /Fixtures/SwiftSDKs/test-sdk.artifactbundle.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/SwiftSDKs/test-sdk.artifactbundle.tar.gz -------------------------------------------------------------------------------- /Fixtures/SwiftSDKs/test-sdk.artifactbundle.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Fixtures/SwiftSDKs/test-sdk.artifactbundle.zip -------------------------------------------------------------------------------- /Fixtures/Traits/DisablingEmptyDefaultsExample/Sources/DisablingEmptyDefaultsExample/Example.swift: -------------------------------------------------------------------------------- 1 | @main 2 | struct Example { 3 | static func main() { 4 | 5 | } 6 | } -------------------------------------------------------------------------------- /Fixtures/Traits/Package1/Sources/Package1Library1/Library.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | #if Package1Trait1 3 | print("Package1Library1 trait1 enabled") 4 | #else 5 | print("Package1Library1 trait1 disabled") 6 | #endif 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Traits/Package11/Sources/Package11Library1/Library.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | print("Package11Library1") 3 | } -------------------------------------------------------------------------------- /Fixtures/Traits/Package2/Sources/Package2Library1/Library.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | #if Package2Trait2 3 | print("Package2Library1 trait2 enabled") 4 | #else 5 | print("Package2Library1 trait2 disabled") 6 | #endif 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Traits/Package3/Sources/Package3Library1/Library.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | #if Package3Trait3 3 | print("Package3Library1 trait3 enabled") 4 | #else 5 | print("Package3Library1 trait3 disabled") 6 | #endif 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Traits/Package4/Sources/Package4Library1/Library.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | #if Package4Trait1 3 | print("Package4Library1 trait1 enabled") 4 | #else 5 | print("Package4Library1 trait1 disabled") 6 | #endif 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Traits/Package5/Sources/Package5Library1/Library.swift: -------------------------------------------------------------------------------- 1 | #if Package5Trait1 2 | import Package6Library1 3 | #endif 4 | 5 | public func hello() { 6 | #if Package5Trait1 7 | print("Package5Library1 trait1 enabled") 8 | Package6Library1.hello() 9 | #else 10 | print("Package5Library1 trait1 disabled") 11 | #endif 12 | } 13 | -------------------------------------------------------------------------------- /Fixtures/Traits/Package6/Sources/Package6Library1/Library.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | #if Package6Trait1 3 | print("Package6Library1 trait1 enabled") 4 | #else 5 | print("Package6Library1 trait1 disabled") 6 | #endif 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Traits/Package7/Sources/Package7Library1/Library.swift: -------------------------------------------------------------------------------- 1 | #if Package7Trait1 2 | import Package8Library1 3 | #endif 4 | 5 | public func hello() { 6 | #if Package7Trait1 7 | print("Package7Library1 trait1 enabled") 8 | Package8Library1.hello() 9 | #else 10 | print("Package7Library1 trait1 disabled") 11 | #endif 12 | } 13 | -------------------------------------------------------------------------------- /Fixtures/Traits/Package8/Sources/Package6Library1/Library.swift: -------------------------------------------------------------------------------- 1 | public func hello() { 2 | #if Package8Trait1 3 | print("Package8Library1 trait1 enabled") 4 | #else 5 | print("Package8Library1 trait1 disabled") 6 | #endif 7 | } 8 | -------------------------------------------------------------------------------- /Fixtures/Traits/Package9/Sources/Package9Library1/Library.swift: -------------------------------------------------------------------------------- 1 | import Package10Library1 2 | 3 | public func hello() { 4 | Package10Library1.hello() 5 | } 6 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/ExecutableMixed/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/ExecutableMixed/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "ExecutableNew", 6 | targets: [ 7 | .target(name: "ExecutableSwift"), 8 | .target(name: "ExecutableC"), 9 | .target(name: "ExecutableCxx"), 10 | ] 11 | ) 12 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/ExecutableMixed/README.md: -------------------------------------------------------------------------------- 1 | # ExecutableMixed 2 | 3 | A description of this package. 4 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/ExecutableMixed/Sources/ExecutableC/c.c: -------------------------------------------------------------------------------- 1 | int main() { 2 | return 0; 3 | } 4 | 5 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/ExecutableMixed/Sources/ExecutableCxx/cxx.cpp: -------------------------------------------------------------------------------- 1 | int main() { 2 | return 0; 3 | } 4 | 5 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/ExecutableMixed/Sources/ExecutableSwift/main.swift: -------------------------------------------------------------------------------- 1 | print("Hello, world!") 2 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/ExecutableNew/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/ExecutableNew/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "ExecutableNew", 6 | targets: [ 7 | .target(name: "ExecutableNew"), 8 | ] 9 | ) 10 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/ExecutableNew/README.md: -------------------------------------------------------------------------------- 1 | # ExecutableNew 2 | 3 | A description of this package. 4 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/ExecutableNew/Sources/ExecutableNew/main.swift: -------------------------------------------------------------------------------- 1 | print("Hello, world!") 2 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/Library/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Library", 6 | targets: [ 7 | .target(name: "Library"), 8 | ] 9 | ) 10 | -------------------------------------------------------------------------------- /Fixtures/ValidLayouts/SingleModule/Library/Sources/Library/Foo.swift: -------------------------------------------------------------------------------- 1 | class Foo { 2 | var bar: Int = 0 3 | } 4 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/BinaryTargets/Inputs/SwiftFramework/SwiftFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/BinaryTargets/Inputs/SwiftFramework/SwiftFramework.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/BinaryTargets/Inputs/SwiftFramework/SwiftFramework/SwiftFramework.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SwiftFramework.swift 3 | // SwiftFramework 4 | // 5 | // Created by David Hart on 17.02.20. 6 | // Copyright © 2020 David Hart. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct SwiftFramework { 12 | public init() {} 13 | } 14 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/BinaryTargets/TestBinary/Sources/CLibrary/CLibrary.m: -------------------------------------------------------------------------------- 1 | #import "CLibrary.h" 2 | 3 | @implementation CLibrary 4 | 5 | - (instancetype)init { 6 | self = [super init]; 7 | _staticLibrary = [StaticLibrary new]; 8 | _dynamicLibrary = [DynamicLibrary new]; 9 | return self; 10 | } 11 | 12 | @end -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/BinaryTargets/TestBinary/Sources/CLibrary/include/CLibrary.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface CLibrary: NSObject 5 | 6 | @property (nonatomic, readonly) StaticLibrary* staticLibrary; 7 | @property (nonatomic, readonly) DynamicLibrary* dynamicLibrary; 8 | 9 | @end -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/BinaryTargets/TestBinary/Sources/Library/Library.swift: -------------------------------------------------------------------------------- 1 | import SwiftFramework 2 | 3 | public struct Library { 4 | public let framework = SwiftFramework() 5 | 6 | public init() { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/BinaryTargets/TestBinary/Sources/cexe/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | int main(int argc, const char* argv[]) { 4 | printf("%s", [CLibrary new].description.UTF8String); 5 | } 6 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/BinaryTargets/TestBinary/Sources/exe/main.swift: -------------------------------------------------------------------------------- 1 | import SwiftFramework 2 | import Library 3 | 4 | print(SwiftFramework()) 5 | print(Library()) 6 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/BinaryTargets/TestBinary/SwiftFramework.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/IntegrationTests/Fixtures/BinaryTargets/TestBinary/SwiftFramework.zip -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/ExecutableProducts/Bar/Sources/BarLib/BarLib.swift: -------------------------------------------------------------------------------- 1 | public struct BarInfo { 2 | public static let name: String = "bar" 3 | } -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/ExecutableProducts/Bar/Sources/bar/main.swift: -------------------------------------------------------------------------------- 1 | import BarLib 2 | 3 | func main() { 4 | print("Hello from \(BarInfo.name)") 5 | } -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/ExecutableProducts/Bar/Sources/cbar/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) { 4 | printf("Hello from cbar"); 5 | } 6 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/ExecutableProducts/Foo/Sources/FooLib/FooLib.swift: -------------------------------------------------------------------------------- 1 | public struct FooInfo { 2 | public static let name: String = "bar" 3 | } -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/ExecutableProducts/Foo/Sources/cfoo/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) { 4 | printf("Hello from cfoo"); 5 | } 6 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/ExecutableProducts/Foo/Sources/foo/main.swift: -------------------------------------------------------------------------------- 1 | import FooLib 2 | import BarLib 3 | 4 | func main() { 5 | print("Hello from \(FooInfo.name)") 6 | print("Hello from \(BarInfo.name)") 7 | } -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/Libraries/Bar/Sources/BarLib/BarLib.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @objcMembers public class BarInfo: NSObject { 4 | public static let name = "Bar" 5 | } -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/Libraries/Foo/Sources/CFooLib/CFooLib.m: -------------------------------------------------------------------------------- 1 | @import Foundation; 2 | @import BarLib; 3 | #import "CFooLib.h" 4 | 5 | @implementation CFooInfo 6 | 7 | + (NSString*)name { 8 | return [NSString stringWithFormat:@"CFoo %@", [BarInfo name]]; 9 | } 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/Libraries/Foo/Sources/CFooLib/include/CFooLib.h: -------------------------------------------------------------------------------- 1 | @import Foundation; 2 | 3 | @interface CFooInfo: NSObject 4 | + (nonnull NSString*)name; 5 | @end 6 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/Libraries/Foo/Sources/FooLib/FooLib.swift: -------------------------------------------------------------------------------- 1 | import CFooLib 2 | import BarLib 3 | 4 | public struct FooInfo { 5 | public static let name = "Foo \(BarInfo.name) \(CFooInfo.name)" 6 | } -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/SystemTargets/Foo/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "Foo", 7 | targets: [ 8 | .target(name: "foo", dependencies: ["SystemLib"]), 9 | .systemLibrary(name: "SystemLib", pkgConfig: "libsys"), 10 | ] 11 | ) 12 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/SystemTargets/Foo/Sources/SystemLib/module.modulemap: -------------------------------------------------------------------------------- 1 | module SystemLib [system] { 2 | header "../../../Inputs/libsys.h" 3 | export * 4 | } 5 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/SystemTargets/Foo/Sources/foo/main.swift: -------------------------------------------------------------------------------- 1 | import SystemLib 2 | 3 | print(String(cString: GetSystemLibName()!)) 4 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/SystemTargets/Inputs/libsys.pc: -------------------------------------------------------------------------------- 1 | Name: SystemLibrary 2 | URL: http://127.0.0.1/ 3 | Description: The one and only SystemLibrary 4 | Version: 1.0.0 5 | Cflags: -I${pcfiledir} 6 | Libs: -L${pcfiledir} -lsys 7 | -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/TestProducts/Bar/Sources/BarLib/BarLib.m: -------------------------------------------------------------------------------- 1 | #import "BarLib.h" 2 | 3 | @implementation BarInfo 4 | 5 | + (NSString*)name { 6 | return @"Bar"; 7 | } 8 | 9 | @end -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/TestProducts/Bar/Sources/BarLib/include/BarLib.h: -------------------------------------------------------------------------------- 1 | @import Foundation; 2 | 3 | @interface BarInfo: NSObject 4 | + (nonnull NSString*)name; 5 | @end -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/TestProducts/Foo/Sources/FooLib/FooLib.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @objcMembers public class FooInfo: NSObject { 4 | public static let name = "Foo" 5 | } -------------------------------------------------------------------------------- /IntegrationTests/Fixtures/XCBuild/TestProducts/Foo/Tests/FooTests/FooTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import FooLib 3 | import BarLib 4 | 5 | final class FooTests: XCTestCase { 6 | func testFoo() { 7 | XCTAssertEqual(FooInfo.name, "Foo") 8 | } 9 | 10 | func testBar() { 11 | XCTAssertEqual(BarInfo.name(), "Bar") 12 | } 13 | } -------------------------------------------------------------------------------- /IntegrationTests/README.md: -------------------------------------------------------------------------------- 1 | # Integration Tests 2 | 3 | Automated tests for validating the generated Swift snapshots behave correctly. 4 | 5 | ## Usage 6 | 7 | The tests are run using the 'test-toolchain' Python script: 8 | 9 | ``` 10 | $ Utilities/test-toolchain 11 | ``` 12 | 13 | By default, the script runs tests against the currently installed toolchain. 14 | -------------------------------------------------------------------------------- /Sources/Commands/README.md: -------------------------------------------------------------------------------- 1 | # Commands Library 2 | 3 | This library defines interfaces to the high-level command line tools. 4 | -------------------------------------------------------------------------------- /Sources/PackageDescription/ContextModel.swift: -------------------------------------------------------------------------------- 1 | ../PackageLoading/ContextModel.swift -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/BuildConfiguration.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/BuildConfiguration`` 2 | 3 | ## Topics 4 | 5 | ### Describing Build Configurations 6 | 7 | - ``debug`` 8 | - ``release`` 9 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/BuildSettingCondition.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/BuildSettingCondition`` 2 | 3 | ## Topics 4 | 5 | ### Checking for a Build Condition 6 | 7 | - ``when(platforms:)`` 8 | - ``when(configuration:)`` 9 | - ``when(platforms:configuration:)-475co`` 10 | - ``when(platforms:configuration:traits:)`` 11 | - ``when(platforms:configuration:)-2991l`` 12 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/CSetting.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/CSetting`` 2 | 3 | ## Topics 4 | 5 | ### Configuring C Settings 6 | 7 | - ``define(_:to:_:)`` 8 | - ``headerSearchPath(_:_:)`` 9 | - ``unsafeFlags(_:_:)`` 10 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/CXXSetting.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/CXXSetting`` 2 | 3 | ## Topics 4 | 5 | ### Configuring CXX Settings 6 | 7 | - ``define(_:to:_:)`` 8 | - ``headerSearchPath(_:_:)`` 9 | - ``unsafeFlags(_:_:)`` 10 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/CLanguageStandard-hash.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/CLanguageStandard/hash(into:)`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | Hashes the C language standard by feeding the item into the given hasher. 8 | 9 | - Parameter hasher: The hasher. 10 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/CLanguageStandard-hashValue.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/CLanguageStandard/hashValue`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | The hash value for the C language standard. 8 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/CXXLanguageStandard-hash.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/CXXLanguageStandard/hash(into:)`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | Hashes the C++ language standard by feeding the item into the given hasher. 8 | 9 | - Parameter hasher: The hasher. 10 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/CXXLanguageStandard-hashValue.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/CXXLanguageStandard/hashValue`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | The hash value for the C++ language standard. 8 | 9 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/LanguageTag-hash.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/LanguageTag/hash(into:)`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | Hashes the language tag by feeding the item into the given hasher. 8 | 9 | - Parameter hasher: The hasher. 10 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/LanguageTag-hashValue.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/LanguageTag/hashValue`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | The hash value for language tag. 8 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/LanguageTag-rawValue.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/LanguageTag/rawValue`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | The corresponding value of the raw type. 8 | 9 | A new instance initialized with `rawValue` will be equivalent to this instance. 10 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/Library-LibraryType-hashValue.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Product/Library/LibraryType/hashValue`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | The library type’s hash value. 8 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/Product-Executable.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Product/Executable`` 2 | 3 | ## Topics 4 | 5 | ### Describing an executable product 6 | 7 | - ``targets`` 8 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/Resource-Localization-hash.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Resource/Localization/hash(into:)`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | Hashes the localization by feeding the item into the given hasher. 8 | 9 | - Parameter hasher: The hasher. 10 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/Resource-Localization-hashValue.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Resource/Localization/hashValue`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | The localization's hash value. 8 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/Target-TargetType-hash.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Target/TargetType/hash(into:)`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | Hashes the target type by feeding the item into the given hasher. 8 | 9 | - Parameter hasher: The hasher. 10 | 11 | 12 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Extensions/Target-TargetType-hashValue.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Target/TargetType/hashValue`` 2 | 3 | @Metadata { 4 | @DocumentationExtension(mergeBehavior: override) 5 | } 6 | 7 | The target type's hash value. 8 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Library.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Product/Library`` 2 | 3 | ## Topics 4 | 5 | ### Describing a Library Product 6 | 7 | - ``targets`` 8 | - ``type`` 9 | - ``LibraryType`` 10 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/LinkerSetting.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/LinkerSetting`` 2 | 3 | ## Topics 4 | 5 | ### Configuring Linker Settings 6 | 7 | - ``linkedFramework(_:_:)`` 8 | - ``linkedLibrary(_:_:)`` 9 | - ``unsafeFlags(_:_:)`` 10 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Plugin.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Product/Plugin`` 2 | 3 | ## Topics 4 | 5 | ### Describing a plug-in product 6 | 7 | - ``targets`` 8 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/PluginCapability.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Target/PluginCapability-swift.enum`` 2 | 3 | ## Topics 4 | 5 | ### Creating a Plugin Capability 6 | 7 | - ``buildTool()`` 8 | - ``command(intent:permissions:)`` 9 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/PluginCommandIntent.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/PluginCommandIntent`` 2 | 3 | ## Topics 4 | 5 | ### Creating a Command Intent 6 | 7 | - ``documentationGeneration()`` 8 | - ``sourceCodeFormatting()`` 9 | - ``custom(verb:description:)`` 10 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/PluginPermission.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/PluginPermission`` 2 | 3 | ## Topics 4 | 5 | ### Create a permission 6 | 7 | - ``allowNetworkConnections(scope:reason:)`` 8 | - ``writeToPackageDirectory(reason:)`` 9 | 10 | ### Allow network connection 11 | 12 | - ``PluginNetworkPermissionScope`` 13 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/PluginUsage.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Target/PluginUsage`` 2 | 3 | ## Topics 4 | 5 | ### Creating a Plugin Usage 6 | 7 | - ``plugin(name:)`` 8 | - ``plugin(name:package:)`` 9 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Resource.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Resource`` 2 | 3 | ## Topics 4 | 5 | ### Applying Rules 6 | 7 | - ``process(_:localization:)`` 8 | - ``Localization`` 9 | - ``copy(_:)`` 10 | - ``embedInCode(_:)`` 11 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/SwiftLanguageMode.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/SwiftLanguageMode`` 2 | 3 | ## Topics 4 | 5 | ### Swift Language Modes 6 | 7 | - ``v6`` 8 | - ``v5`` 9 | - ``v4_2`` 10 | - ``v4`` 11 | - ``version(_:)`` 12 | - ``v3`` 13 | 14 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/SystemPackageProvider.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/SystemPackageProvider`` 2 | 3 | ## Topics 4 | 5 | ### Providing Hints to Users of System Packages 6 | 7 | - ``apt(_:)`` 8 | - ``brew(_:)`` 9 | - ``nuget(_:)`` 10 | - ``yum(_:)`` 11 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Target-TargetDependencyCondition.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/TargetDependencyCondition`` 2 | 3 | ## Topics 4 | 5 | ### Creating a Dependency Condition 6 | 7 | - ``when(platforms:)-5bxhc`` 8 | - ``when(traits:)`` 9 | - ``when(platforms:traits:)`` 10 | - ``when(platforms:)-4djh6`` 11 | -------------------------------------------------------------------------------- /Sources/PackageDescription/PackageDescription.docc/Curation/Version.md: -------------------------------------------------------------------------------- 1 | # ``PackageDescription/Version`` 2 | 3 | ## Topics 4 | 5 | ### Creating a new version 6 | 7 | - ``init(_:_:_:prereleaseIdentifiers:buildMetadataIdentifiers:)`` 8 | 9 | ### Inspecting a version 10 | 11 | - ``major`` 12 | - ``minor`` 13 | - ``patch`` 14 | - ``prereleaseIdentifiers`` 15 | - ``buildMetadataIdentifiers`` 16 | -------------------------------------------------------------------------------- /Sources/PackageGraph/README.md: -------------------------------------------------------------------------------- 1 | # PackageGraph Library 2 | 3 | This library defines the support for connecting a set of packages together into 4 | an overall graph which can be used for the high-level package manager 5 | operations. 6 | -------------------------------------------------------------------------------- /Sources/PackageLoading/PackageDescriptionSerialization.swift: -------------------------------------------------------------------------------- 1 | ../PackageDescription/PackageDescriptionSerialization.swift -------------------------------------------------------------------------------- /Sources/PackageManagerDocs/Documentation.docc/Assets/command-icon.svg: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /Sources/PackageManagerDocs/Documentation.docc/Assets/command-icon~dark.svg: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /Sources/PackageManagerDocs/Documentation.docc/GettingStarted.md: -------------------------------------------------------------------------------- 1 | # Getting Started 2 | 3 | Learn to create and use a Swift package. 4 | 5 | ## Overview 6 | 7 | overview content here.... 8 | 9 | ### First Section 10 | 11 | First section content 12 | -------------------------------------------------------------------------------- /Sources/PackageManagerDocs/Documentation.docc/PackageDescription.md: -------------------------------------------------------------------------------- 1 | # Package Description 2 | 3 | Create reusable code, organize it in a lightweight way, and share it across your projects and with other developers. 4 | 5 | For more information about the `PackageDescription` framework, please visit the [API documentation](https://developer.apple.com/documentation/packagedescription). 6 | -------------------------------------------------------------------------------- /Sources/PackageManagerDocs/EmptyFile.swift: -------------------------------------------------------------------------------- 1 | // This is an empty placeholder swift file for the documentation target. 2 | 3 | // You can preview the documentation here by running the following command: 4 | // swift package --disable-sandbox preview-documentation --target PackageManagerDocs 5 | -------------------------------------------------------------------------------- /Sources/SPMBuildCore/Plugins/PluginMessages.swift: -------------------------------------------------------------------------------- 1 | ../../PackagePlugin/PluginMessages.swift -------------------------------------------------------------------------------- /Sources/SPMSQLite3/module.modulemap: -------------------------------------------------------------------------------- 1 | module SPMSQLite3 [system] { 2 | header "sqlite.h" 3 | link "sqlite3" 4 | export * 5 | } 6 | -------------------------------------------------------------------------------- /Sources/SwiftSDKCommand/README.md: -------------------------------------------------------------------------------- 1 | # Swift SDKs Command 2 | 3 | This module implements `swift sdk` command and its subcommands, which allow managing artifact 4 | bundles used as Swift SDKs, as specified in [SE-0387](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md). 5 | -------------------------------------------------------------------------------- /Sources/_InternalTestSupport/Commands.swift: -------------------------------------------------------------------------------- 1 | import SPMBuildCore 2 | import XCTest 3 | 4 | open class BuildSystemProviderTestCase: XCTestCase { 5 | open var buildSystemProvider: BuildSystemProvider.Kind { 6 | fatalError("\(self) does not implement \(#function)") 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Sources/tsan_utils/include/module.modulemap: -------------------------------------------------------------------------------- 1 | module tsan_utils { 2 | header "tsan_utils.h" 3 | export * 4 | } 5 | -------------------------------------------------------------------------------- /Tests/BasicsTests/Archiver/Inputs/archive.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Tests/BasicsTests/Archiver/Inputs/archive.tar.gz -------------------------------------------------------------------------------- /Tests/BasicsTests/Archiver/Inputs/archive.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Tests/BasicsTests/Archiver/Inputs/archive.zip -------------------------------------------------------------------------------- /Tests/BasicsTests/Archiver/Inputs/invalid_archive.tar.gz: -------------------------------------------------------------------------------- 1 | not an archive -------------------------------------------------------------------------------- /Tests/BasicsTests/Archiver/Inputs/invalid_archive.zip: -------------------------------------------------------------------------------- 1 | not an archive -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/deadlock-if-blocking-io: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import sys 4 | 5 | kb = 1024 6 | 7 | for i in range(0,16 * kb): 8 | sys.stdout.write("1") 9 | sys.stdout.flush() 10 | 11 | for i in range(0,16 * kb): 12 | sys.stderr.write("2") 13 | sys.stderr.flush() 14 | -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/deadlock-if-blocking-io.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | python %~dp0deadlock-if-blocking-io -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/echo: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import sys 4 | 5 | for n in range(5): 6 | input = sys.stdin.readline() 7 | sys.stdout.write(input) 8 | sys.stdout.flush() 9 | -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/echo.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | python %~dp0echo -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/exit4: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | exit 4 4 | -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/exit4.bat: -------------------------------------------------------------------------------- 1 | EXIT /B 4 -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/in-to-out: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import sys 4 | 5 | sys.stdout.write(sys.stdin.readline()) 6 | -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/in-to-out.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | python %~dp0in-to-out -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/long-stdout-stderr: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import sys 4 | 5 | for i in range(0,16 * 1024): 6 | sys.stdout.write("1") 7 | sys.stdout.flush() 8 | sys.stderr.write("2") 9 | sys.stderr.flush() 10 | 11 | -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/long-stdout-stderr.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | python %~dp0long-stdout-stderr -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/simple-stdout-stderr: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import sys 4 | 5 | sys.stderr.write("simple error\n") 6 | sys.stderr.flush() 7 | sys.stdout.write("simple output\n") 8 | sys.stdout.flush() 9 | -------------------------------------------------------------------------------- /Tests/BasicsTests/processInputs/simple-stdout-stderr.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | python %~dp0simple-stdout-stderr -------------------------------------------------------------------------------- /Tests/ExtraTests/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | -------------------------------------------------------------------------------- /Tests/ExtraTests/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:4.2 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "ExtraTests", 7 | dependencies: [ 8 | .package(path: "../../"), 9 | ], 10 | targets: [ 11 | .testTarget( 12 | name: "ExtraTests", 13 | dependencies: ["SPMUtility"]), 14 | ] 15 | ) 16 | -------------------------------------------------------------------------------- /Tests/ExtraTests/README.md: -------------------------------------------------------------------------------- 1 | # ExtraTests 2 | 3 | This contains some extra tests that are not suitable for running on the official 4 | CI but can be run elsewhere. 5 | -------------------------------------------------------------------------------- /Tests/ExtraTests/Tests/LinuxMain.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | import ExtraTests 4 | 5 | var tests = [XCTestCaseEntry]() 6 | tests += ExtraTests.__allTests() 7 | 8 | XCTMain(tests) 9 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/Inputs/Bar.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: Foo 7 | URL: http://127.0.0.1/ 8 | Description: The one and only SystemModule 9 | Version: 1.10.0 10 | Cflags: -I${includedir} -I/path/to/inc -DDenyListed 11 | Libs: -L${libdir} -L/usr/da/lib -lSystemModule -lok 12 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/Inputs/Dependency.pc: -------------------------------------------------------------------------------- 1 | Name: Dependency 2 | Cflags: -I/path/to/dependency/include 3 | Libs: -L/path/to/dependency/lib 4 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/Inputs/Dependent.pc: -------------------------------------------------------------------------------- 1 | Name: Dependent 2 | Cflags: -I/path/to/dependent/include 3 | Libs: -L/path/to/dependent/lib 4 | Requires: Dependency 5 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/Inputs/Foo.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: Foo 7 | URL: http://127.0.0.1/ 8 | Description: The one and only SystemModule 9 | Version: 1.10.0 10 | Cflags: -I${includedir} -I/path/to/inc -I${pcfiledir} 11 | Libs: -L${libdir} -L/usr/da/lib -lSystemModule -lok 12 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/Inputs/Framework.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: Foo 7 | URL: http://127.0.0.1/ 8 | Description: The one and only SystemFramework 9 | Version: 1.10.0 10 | Cflags: -I${includedir} -F${libdir} -DDenyListed 11 | Libs: -F${libdir} -framework SystemFramework 12 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/Inputs/package-deps-manifest.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "PackageDeps", 5 | dependencies: [ 6 | .Package(url: "https://example.com/example", majorVersion: 1)]) 7 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/Inputs/target-deps-manifest.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "TargetDeps", 5 | targets: [ 6 | Target( 7 | name: "sys", 8 | dependencies: [.Target(name: "libc")]), 9 | Target( 10 | name: "dep", 11 | dependencies: [.Target(name: "sys"), .Target(name: "libc")])]) 12 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/Inputs/trivial-manifest.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package(name: "Trivial") 4 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/pkgconfigInputs/case_insensitive.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr/local/bin 2 | exec_prefix=${prefix} 3 | 4 | #some comment 5 | Name: case_insensitive 6 | Version: 1 7 | Description: Demonstrate that pkgconfig keys are case-insensitive 8 | 9 | # upstream pkg-config parser allows Cflags & CFlags as key 10 | CFlags: -I/usr/local/include 11 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/pkgconfigInputs/deps_variable.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr/local/bin 2 | exec_prefix=${prefix} 3 | my_dep=atk 4 | #some comment 5 | Name: deps_variable 6 | Version: 1 7 | Description: Demonstrate use of a locally-defined variable 8 | 9 | Requires: gdk-3.0 >= 1.0.0 ${my_dep} 10 | Libs: -L${prefix} -lgtk-3 11 | Cflags: -I 12 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/pkgconfigInputs/double_sysroot.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr 2 | datarootdir=${prefix}/share 3 | pkgdatadir=${pc_sysrootdir}/${datarootdir}/pkgdata 4 | 5 | Name: double_sysroot 6 | Description: Demonstrate double-prefixing of pc_sysrootdir (https://github.com/pkgconf/pkgconf/issues/123) 7 | Version: 1 8 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/pkgconfigInputs/dummy_dependency.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr/local/bin 2 | exec_prefix=${prefix} 3 | 4 | #some comment 5 | Name: dummy_dependency 6 | Version: 1 7 | Description: Demonstrate a blank dependency entry 8 | 9 | Requires: pango, , fontconfig >= 2.13.0 10 | Libs:-L${prefix} -lpangoft2-1.0 11 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/pkgconfigInputs/empty_cflags.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr/local/bin 2 | exec_prefix=${prefix} 3 | 4 | #some comment 5 | Name: empty_cflags 6 | Version: 1 7 | Description: Demonstrate an empty cflags list 8 | 9 | Requires: gdk-3.0 atk 10 | Libs:-L${prefix} -lgtk-3 11 | Cflags: 12 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/pkgconfigInputs/failure_case.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr/local/bin 2 | exec_prefix=${prefix} 3 | 4 | #some comment 5 | Name: failure_case 6 | Version: 1 7 | Description: Demonstrate failure caused by use of an undefined variable 8 | 9 | Requires: gdk-3.0 >= 1.0.0 10 | Libs: -L${prefix} -lgtk-3 ${my_dep} 11 | Cflags: -I 12 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/pkgconfigInputs/harfbuzz.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr 2 | libdir=${prefix}/lib 3 | includedir=${prefix}/include 4 | 5 | Name: harfbuzz 6 | Description: HarfBuzz text shaping library 7 | Version: 2.7.4 8 | Requires.private: freetype2 9 | Libs: -L${libdir} -lharfbuzz 10 | Libs.private: -pthread -lm 11 | Cflags: -I${includedir}/harfbuzz 12 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/pkgconfigInputs/libffi.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr/local/Cellar/libffi/3.3 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | toolexeclibdir=${libdir} 5 | includedir=${prefix}/include 6 | 7 | Name: libffi 8 | Description: Library supporting Foreign Function Interfaces 9 | Version: 3.3 10 | Libs: -L${toolexeclibdir} -lffi 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /Tests/PackageLoadingTests/pkgconfigInputs/not_double_sysroot.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr 2 | datarootdir=${prefix}/share 3 | pkgdatadir=${pc_sysrootdir}/filler/${datarootdir}/pkgdata 4 | 5 | Name: double_sysroot 6 | Description: Demonstrate pc_sysrootdir appearing elsewhere in a path - this is not a double prefix and should not be removed -------------------------------------------------------------------------------- /Tests/SourceControlTests/Inputs/TestRepo.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Tests/SourceControlTests/Inputs/TestRepo.tgz -------------------------------------------------------------------------------- /Tests/XCBuildSupportTests/Inputs/Foo.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: Foo 7 | URL: http://127.0.0.1/ 8 | Description: The one and only SystemModule 9 | Version: 1.10.0 10 | Cflags: -I${includedir} -I/path/to/inc -I${pcfiledir} 11 | Libs: -L${libdir} -L/usr/da/lib -lSystemModule -lok 12 | -------------------------------------------------------------------------------- /Utilities/Certificates/Intermediates/AppleWWDRCAG2.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Utilities/Certificates/Intermediates/AppleWWDRCAG2.cer -------------------------------------------------------------------------------- /Utilities/Certificates/Intermediates/AppleWWDRCAG3.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Utilities/Certificates/Intermediates/AppleWWDRCAG3.cer -------------------------------------------------------------------------------- /Utilities/Certificates/Intermediates/AppleWWDRCAG4.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Utilities/Certificates/Intermediates/AppleWWDRCAG4.cer -------------------------------------------------------------------------------- /Utilities/Certificates/Intermediates/AppleWWDRCAG5.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Utilities/Certificates/Intermediates/AppleWWDRCAG5.cer -------------------------------------------------------------------------------- /Utilities/Certificates/Intermediates/AppleWWDRCAG6.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Utilities/Certificates/Intermediates/AppleWWDRCAG6.cer -------------------------------------------------------------------------------- /Utilities/Certificates/Intermediates/AppleWWDRCAG7.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Utilities/Certificates/Intermediates/AppleWWDRCAG7.cer -------------------------------------------------------------------------------- /Utilities/Certificates/Intermediates/AppleWWDRCAG8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Utilities/Certificates/Intermediates/AppleWWDRCAG8.cer -------------------------------------------------------------------------------- /Utilities/Certificates/Roots/AppleComputerRootCertificate.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Utilities/Certificates/Roots/AppleComputerRootCertificate.cer -------------------------------------------------------------------------------- /Utilities/Certificates/Roots/AppleIncRootCertificate.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Utilities/Certificates/Roots/AppleIncRootCertificate.cer -------------------------------------------------------------------------------- /Utilities/Certificates/Roots/AppleRootCA-G2.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Utilities/Certificates/Roots/AppleRootCA-G2.cer -------------------------------------------------------------------------------- /Utilities/Certificates/Roots/AppleRootCA-G3.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-package-manager/c5d77e55a07aa036aab2cbbcd951c4aeb854068c/Utilities/Certificates/Roots/AppleRootCA-G3.cer -------------------------------------------------------------------------------- /Utilities/InstalledSwiftPMConfiguration/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.9 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "InstalledSwiftPMConfiguration", 7 | targets: [ 8 | .executableTarget( 9 | name: "InstalledSwiftPMConfiguration" 10 | ), 11 | ] 12 | ) 13 | -------------------------------------------------------------------------------- /Utilities/InstalledSwiftPMConfiguration/Sources/InstalledSwiftPMConfiguration.swift: -------------------------------------------------------------------------------- 1 | ../../../Sources/PackageModel/InstalledSwiftPMConfiguration.swift -------------------------------------------------------------------------------- /Utilities/config.json: -------------------------------------------------------------------------------- 1 | {"version":1, 2 | "swiftSyntaxVersionForMacroTemplate":{"major":600,"minor":0,"patch":0, "prereleaseIdentifier":"latest"}, 3 | "swiftTestingVersionForTestTemplate":{"major":0,"minor":8,"patch":0}} 4 | -------------------------------------------------------------------------------- /cmake/modules/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | get_property(SwiftPM_EXPORTS GLOBAL PROPERTY SwiftPM_EXPORTS) 2 | export(TARGETS ${SwiftPM_EXPORTS} FILE SwiftPMConfig.cmake) 3 | --------------------------------------------------------------------------------