Skip to content

Commit 37261f4

Browse files
authored
Merge pull request #9510 from swiftlang/automerge/merge-main-2025-12-15_09-06
Merge `main` into `release/6.3`
2 parents f514c3a + b60528e commit 37261f4

File tree

190 files changed

+4531
-1263
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+4531
-1263
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
create_merge_pr:
1515
name: Create PR to merge main into release branch
16-
uses: swiftlang/github-workflows/.github/workflows/[email protected].1
16+
uses: swiftlang/github-workflows/.github/workflows/[email protected].2
1717
with:
1818
head_branch: main
1919
base_branch: release/6.3

.github/workflows/pull_request.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,62 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
tests:
16-
name: Test
17-
uses: swiftlang/github-workflows/.github/workflows/[email protected]
15+
tests-using-native:
16+
needs: [soundness]
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
buildSystem: ["native", "swiftbuild"]
21+
linuxSwiftVersion: ['["nightly-main", "nightly-6.2"]', '["nightly-main"]']
22+
enable_windows_checks: [true]
23+
exclude:
24+
- buildSystem: "swiftbuild"
25+
linuxSwiftVersion: '["nightly-main", "nightly-6.2"]'
26+
- buildSystem: "swiftbuild"
27+
enable_windows_checks: true
28+
- buildSystem: "native"
29+
linuxSwiftVersion: '["nightly-main"]'
30+
name: Test (${{ matrix.buildSystem }})
31+
uses: swiftlang/github-workflows/.github/workflows/[email protected]
32+
with:
33+
linux_os_versions: '["amazonlinux2", "bookworm", "noble", "jammy", "rhel-ubi9"]'
34+
linux_swift_versions: ${{ matrix.linuxSwiftVersion }}
35+
linux_pre_build_command: ./.github/scripts/prebuild.sh
36+
linux_build_command: 'swift run swift-build --build-tests --build-system ${{ matrix.buildSystem}}'
37+
windows_swift_versions: '["nightly-main"]'
38+
windows_pre_build_command: 'Invoke-Program .\.github\scripts\prebuild.ps1'
39+
windows_build_command: 'Invoke-Program swift run swift-build --build-tests --build-system ${{ matrix.buildSystem}}'
40+
enable_windows_checks: ${{ matrix.enable_windows_checks }}
41+
enable_ios_checks: true
42+
enable_macos_checks: true
43+
macos_exclude_xcode_versions: "[{\"xcode_version\": \"16.3\"}, {\"xcode_version\": \"16.4\"}]"
44+
macos_build_command: 'swift run swift-build --build-tests --build-system ${{ matrix.buildSystem}}'
45+
46+
tests-using-swiftbuild:
47+
name: Test (all SwiftBuild)
48+
needs: [soundness]
49+
uses: swiftlang/github-workflows/.github/workflows/[email protected]
1850
with:
1951
linux_os_versions: '["amazonlinux2", "bookworm", "noble", "jammy", "rhel-ubi9"]'
2052
linux_swift_versions: '["nightly-main"]'
2153
linux_pre_build_command: ./.github/scripts/prebuild.sh
22-
linux_build_command: 'swift build'
54+
linux_build_command: 'swift run --build-system swiftbuild swift-build --build-tests --build-system swiftbuild'
55+
enable_windows_checks: false
2356
windows_swift_versions: '["nightly-main"]'
2457
windows_pre_build_command: 'Invoke-Program .\.github\scripts\prebuild.ps1'
25-
windows_build_command: 'Invoke-Program swift build'
58+
windows_build_command: 'Invoke-Program swift run --build-system swiftbuild swift-build --build-tests --build-system swiftbuild'
2659
enable_ios_checks: true
2760
enable_macos_checks: true
2861
macos_exclude_xcode_versions: "[{\"xcode_version\": \"16.3\"}, {\"xcode_version\": \"16.4\"}]"
29-
macos_build_command: 'swift build'
62+
macos_build_command: 'swift run --build-system swiftbuild swift-build --build-tests --build-system swiftbuild'
3063

3164
soundness:
3265
name: Soundness
33-
uses: swiftlang/github-workflows/.github/workflows/[email protected].1
66+
uses: swiftlang/github-workflows/.github/workflows/[email protected].2
3467
with:
3568
license_header_check_project_name: "Swift"
36-
license_header_check_enabled: false
37-
unacceptable_language_check_enabled: false
69+
license_header_check_enabled: true
70+
unacceptable_language_check_enabled: true
3871
api_breakage_check_enabled: false
3972
format_check_enabled: false
4073
shell_check_enabled: false

.licenseignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,24 @@
66
.dir-locals.el
77
.editorconfig
88
.swift-version
9+
.swiftformat
10+
.pep8
11+
.mailmap
12+
.mailfilter
913
CODEOWNERS
1014
Package.swift
15+
Fixtures/**/*.*
16+
**/*.pc
17+
**/*.cer
18+
**/*.zip
19+
**/*.tar
20+
**/*.tgz
21+
**/*.gz
22+
**/*.svg
23+
**/*.bat
24+
**/*.xctestplan
25+
**/processInputs/**
26+
Utilities/bootstrap
27+
Utilities/build-using-self
28+
Utilities/new-bootstrap
29+
Utilities/test-toolchain

Benchmarks/Benchmarks/PackageGraphBenchmarks/PackageGraphBenchmarks.swift

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift open source project
4+
//
5+
// Copyright (c) 2024 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See http://swift.org/LICENSE.txt for license information
9+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
113
@_spi(DontAdoptOutsideOfSwiftPMExposedForBenchmarksAndTestsOnly)
214
import Basics
315
import Benchmark
@@ -103,18 +115,18 @@ let benchmarks = {
103115
)
104116
) { benchmark in
105117
try syntheticModulesGraph(
106-
benchmark,
107-
modulesGraphDepth: modulesGraphDepth,
118+
benchmark,
119+
modulesGraphDepth: modulesGraphDepth,
108120
modulesGraphWidth: modulesGraphWidth,
109121
includeMacros: true
110122
)
111123
}
112124
}
113125

114126
func syntheticModulesGraph(
115-
_ benchmark: Benchmark,
116-
modulesGraphDepth: Int,
117-
modulesGraphWidth: Int,
127+
_ benchmark: Benchmark,
128+
modulesGraphDepth: Int,
129+
modulesGraphWidth: Int,
118130
includeMacros: Bool = false
119131
) throws {
120132
// If macros are included, modules are split in three parts:

CODEOWNERS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626

2727
* @jakepetroules @dschaefer2 @bripeticca @plemarquand @owenv @bkhouri @cmcgee1024 @daveyc123 @rconnell9
2828

29-
Sources/Commands/PackageCommands/Migrate.swift @AnthonyLatsis @bnbarham @xedin @jakepetroules @dschaefer2 @bripeticca @plemarquand @owenv @bkhouri @cmcgee1024 @daveyc123 @rconnell9
30-
Sources/SwiftFixIt/* @AnthonyLatsis @bnbarham @xedin @jakepetroules @dschaefer2 @bripeticca @plemarquand @owenv @bkhouri @cmcgee1024 @daveyc123 @rconnell9
31-
Tests/SwiftFixItTests/* @AnthonyLatsis @bnbarham @xedin @jakepetroules @dschaefer2 @bripeticca @plemarquand @owenv @bkhouri @cmcgee1024 @daveyc123 @rconnell9
29+
Sources/Commands/PackageCommands/Migrate.swift @AnthonyLatsis @xedin @jakepetroules @dschaefer2 @bripeticca @plemarquand @owenv @bkhouri @cmcgee1024 @daveyc123 @rconnell9
30+
Sources/SwiftFixIt/* @AnthonyLatsis @xedin @jakepetroules @dschaefer2 @bripeticca @plemarquand @owenv @bkhouri @cmcgee1024 @daveyc123 @rconnell9
31+
Tests/SwiftFixItTests/* @AnthonyLatsis @xedin @jakepetroules @dschaefer2 @bripeticca @plemarquand @owenv @bkhouri @cmcgee1024 @daveyc123 @rconnell9

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
There are several types of contributions one can make. Bug fixes, documentation and enhancements that do not materially change the user facing semantics of Swift Package Manager should be submitted directly as PR.
44

5-
Larger changes that do materially change the semantics of Swift Package Manager (e.g. changes to the manifest format or behavior) are required to go through [Swift Evolution Process](https://github.com/swiftlang/swift-evolution/blob/master/process.md).
5+
Larger changes that do materially change the semantics of Swift Package Manager (e.g. changes to the manifest format or behavior) are required to go through [Swift Evolution Process](https://github.com/swiftlang/swift-evolution/blob/main/process.md).
66

77
To see how previous evolution decisions for SwiftPM have been made and have some direction for the development of future features please check out the [Community Proposals](https://forums.swift.org/tag/packagemanager).
88

@@ -16,7 +16,7 @@ Fill the following fields:
1616

1717
* `Title`: A one line summary of the problem you're facing.
1818
* `Description`: The complete description of the problem. Be specific.
19-
* `Expected behavior`: How you expect SwiftPM to behave.
19+
* `Expected behavior`: How you expect SwiftPM to behave.
2020
* `Actual behavior` : What actually happens.
2121
* `Steps to reproduce`: Be specific, provide steps to reproduce the bug.
2222
* `Swift Package Manager version/commit hash` : With which version are you testing.
@@ -510,5 +510,5 @@ Make sure to update your TSC (Tools Support Core):
510510
```bash
511511
$> swift package update
512512
```
513-
Alternatively, if you are using Xcode, you can update to the latest version of all packages:
513+
Alternatively, if you are using Xcode, you can update to the latest version of all packages:
514514
**Xcode App** > *File* > *Swift Packages* > *Update to Latest Package Versions*

Documentation/Design/EvolutionIdeas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you're interested in participating in a particular evolution idea, please
1313
familiarize yourself with the existing discussion on that topic and start
1414
participating in the discussion thread of that idea. If a thread doesn't exist
1515
for that idea, please start one with a [draft
16-
proposal](https://github.com/swiftlang/swift-evolution/blob/master/proposal-templates/0000-swiftpm-template.md)
16+
proposal](https://github.com/swiftlang/swift-evolution/blob/main/proposal-templates/0000-swiftpm-template.md)
1717
that can be used as a starting point.
1818

1919
**Important Note**: This list is not in any particular order. I plan to keep

0 commit comments

Comments
 (0)