Skip to content

Commit

Permalink
Fix Swift 6.0 package.
Browse files Browse the repository at this point in the history
  • Loading branch information
rismay committed Nov 9, 2024
1 parent 7ded2ae commit 531f196
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 wrkstrm
Copyright (c) 2024 wrkstrm

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 5 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:6
// swift-tools-version:6.0
import Foundation
import PackageDescription

Expand Down Expand Up @@ -45,10 +45,11 @@ extension Package {
public var swiftSettings: [SwiftSetting] = []
var dependencies: [PackageDescription.Package.Dependency] = []

public static let inject: Package.Service = ProcessInfo.useLocalDeps ? .local : .remote
@MainActor public static let inject: Package.Service = ProcessInfo.useLocalDeps ? .local : .remote

static var local: Package.Service = .init(swiftSettings: [.localSwiftSettings])
static var remote: Package.Service = .init()
@MainActor static var local: Package.Service = .init(swiftSettings: [.localSwiftSettings])

@MainActor static var remote: Package.Service = .init()
}
}

Expand Down
1 change: 1 addition & 0 deletions Tests/WrkstrmMainTests/BinaryTreeTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Testing

@testable import WrkstrmMain

struct BinaryTreeTests {
Expand Down
1 change: 1 addition & 0 deletions Tests/WrkstrmMainTests/CollectionTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Testing

@testable import WrkstrmMain

struct CollectionTests {
Expand Down

0 comments on commit 531f196

Please sign in to comment.