diff --git a/tests/multi-language-repo/.gitignore b/tests/multi-language-repo/.gitignore new file mode 100644 index 0000000000..3b29812086 --- /dev/null +++ b/tests/multi-language-repo/.gitignore @@ -0,0 +1,9 @@ +.DS_Store +/.build +/Packages +/*.xcodeproj +xcuserdata/ +DerivedData/ +.swiftpm/config/registries.json +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +.netrc diff --git a/tests/multi-language-repo/Package.swift b/tests/multi-language-repo/Package.swift index 9c557cdb89..ff2b07e41c 100644 --- a/tests/multi-language-repo/Package.swift +++ b/tests/multi-language-repo/Package.swift @@ -1,26 +1,15 @@ -// swift-tools-version: 5.7 +// swift-tools-version: 5.8 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( - name: "helloWorld", - products: [ - // Products define the executables and libraries a package produces, and make them visible to other packages. - .library( - name: "helloWorld", - targets: ["helloWorld"]), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), - ], + name: "multi-language-repo", targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages this package depends on. - .target( - name: "helloWorld", - path: "swift-custom-build/helloWorld" - ) + // Targets are the basic building blocks of a package, defining a module or a test suite. + // Targets can depend on other targets in this package and products from dependencies. + .executableTarget( + name: "multi-language-repo", + path: "Sources"), ] ) diff --git a/tests/multi-language-repo/Sources/main.swift b/tests/multi-language-repo/Sources/main.swift new file mode 100644 index 0000000000..44e20d5acc --- /dev/null +++ b/tests/multi-language-repo/Sources/main.swift @@ -0,0 +1,4 @@ +// The Swift Programming Language +// https://docs.swift.org/swift-book + +print("Hello, world!")