Swift: recreate a default Swift package to fix test
This commit is contained in:
parent
8ef17824cf
commit
973250f3d2
3 changed files with 20 additions and 18 deletions
9
tests/multi-language-repo/.gitignore
vendored
Normal file
9
tests/multi-language-repo/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
.DS_Store
|
||||||
|
/.build
|
||||||
|
/Packages
|
||||||
|
/*.xcodeproj
|
||||||
|
xcuserdata/
|
||||||
|
DerivedData/
|
||||||
|
.swiftpm/config/registries.json
|
||||||
|
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
|
||||||
|
.netrc
|
||||||
|
|
@ -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.
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "helloWorld",
|
name: "multi-language-repo",
|
||||||
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"),
|
|
||||||
],
|
|
||||||
targets: [
|
targets: [
|
||||||
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
// 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 on products in packages this package depends on.
|
// Targets can depend on other targets in this package and products from dependencies.
|
||||||
.target(
|
.executableTarget(
|
||||||
name: "helloWorld",
|
name: "multi-language-repo",
|
||||||
path: "swift-custom-build/helloWorld"
|
path: "Sources"),
|
||||||
)
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
|
||||||
4
tests/multi-language-repo/Sources/main.swift
Normal file
4
tests/multi-language-repo/Sources/main.swift
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
// The Swift Programming Language
|
||||||
|
// https://docs.swift.org/swift-book
|
||||||
|
|
||||||
|
print("Hello, world!")
|
||||||
Loading…
Add table
Add a link
Reference in a new issue