Skip to content

Commit

Permalink
Merge pull request #28 from jamf/ml_Swift6_bug_fixes
Browse files Browse the repository at this point in the history
Updates to support public imports when compiling under Swift 6
  • Loading branch information
mlink authored Aug 7, 2024
2 parents aad617e + 871a64d commit be6506c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .swiftpm/configuration/Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"originHash" : "db0939bfcff17f77ea9eb9dc37e55caa295f4878b93f9eaf156720c118c15c0f",
"pins" : [
{
"identity" : "swift-docc-plugin",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-plugin",
"state" : {
"revision" : "26ac5758409154cc448d7ab82389c520fa8a8247",
"version" : "1.3.0"
}
},
{
"identity" : "swift-docc-symbolkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-symbolkit",
"state" : {
"revision" : "b45d1f2ed151d057b54504d653e0da5552844e34",
"version" : "1.0.0"
}
}
],
"version" : 3
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.0.5] - 2024-08-07

### Changed
- Non-breaking changes to public imports when compiling under Swift 6.

## [3.0.4] - 2024-07-01

### Changed
Expand Down
4 changes: 4 additions & 0 deletions Sources/Subprocess/Errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
// SOFTWARE.
//

#if swift(>=6)
public import Foundation
#else
import Foundation
#endif

/// Type representing possible errors
@available(*, deprecated, message: "This type is no longer used with non-deprecated methods")
Expand Down

0 comments on commit be6506c

Please sign in to comment.