Skip to content

Rebase main with @stackotter's same package product dependencies #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 159 commits into
base: same_package_product_dependencies
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
ec4bc27
Don't lock if we don't have a package root (#7335)
neonichu Feb 13, 2024
78f858a
Move and refactor `ProgressAnimation` code from TSC (#7328)
rauhul Feb 13, 2024
9131d8d
Add hidden `--ignore-lock` escape hatch (#7338)
neonichu Feb 14, 2024
4eb3684
Bump swift-syntax version in the macro template (#7339)
neonichu Feb 15, 2024
b704f85
Remove `@neonichu` from CODEOWNERS (#7342)
neonichu Feb 15, 2024
a1b4ad7
Add option to allow HTTP (not HTTPS) registries (#7204)
Footpad Feb 15, 2024
414fed6
Fix test runner build on WASI (#7341)
kateinoigakukun Feb 16, 2024
cae580e
Support for prebuilt packages in the SDK (#7337)
neonichu Feb 16, 2024
2fae93c
Set correct minimum OS targets for new packages using swift-testing (…
grynspan Feb 18, 2024
a0b25d3
Support macros when cross-compiling (#7118)
MaxDesiatov Feb 18, 2024
9c6493f
Make `PackageModel` resources optional (#7348)
MaxDesiatov Feb 19, 2024
2c18196
Build direct dependencies of tests for target triple (#7350)
MaxDesiatov Feb 20, 2024
adfbd9a
Revert "Support macros when cross-compiling (#7118)" (#7352)
MaxDesiatov Feb 20, 2024
c82304c
Build: pass through `Embedded` flag to link jobs (#7304)
MaxDesiatov Feb 21, 2024
98747d5
Fix `.wasm` product paths for `wasm32-unknown-none` triple (#7355)
MaxDesiatov Feb 21, 2024
61d6215
Enable `--gc-sections` for WebAssembly targets (#7356)
kateinoigakukun Feb 21, 2024
03bf6b7
Clarify that Xcode issues are not tracked in `BUG_REPORT.yml` (#7324)
MaxDesiatov Feb 22, 2024
5bafc5a
Allow reading `Package.swift` with the executable bit set
bnbarham Feb 22, 2024
5287062
Exclude `XCBuildSupport` when building with CMake (#7358)
MaxDesiatov Feb 23, 2024
2a01f6e
Use structured concurrency in `PackageLoadingTests` (#7359)
MaxDesiatov Feb 23, 2024
fc1b37a
Don't link libc++ or libstd++ for Embedded Swift (#7357)
MaxDesiatov Feb 23, 2024
d7878b0
Replace 5.11 version with 6.0 in the code base (#7361)
MaxDesiatov Feb 23, 2024
6ff5cbd
Rename `PackageGraph` type to `ModulesGraph` (#7363)
MaxDesiatov Feb 23, 2024
31bc808
Fix `package` access modifier in XCBuild support (#7258)
MaxDesiatov Feb 24, 2024
f533e1b
Generalize test to handle the compiler's new diagnostic printing styl…
DougGregor Feb 25, 2024
d5787ea
Rename `Swift*Tool` to `Swift*Command` (#7336)
MaxDesiatov Feb 25, 2024
8ec22d7
Allow `swift-build` to have `async` entrypoint (#7369)
MaxDesiatov Feb 26, 2024
57d4e04
Benchmarks: add `PackageGraphBenchmarks` target (#7283)
MaxDesiatov Feb 26, 2024
4e80788
Revert "Revert "Start using `package` for some APIs"" (#7344)
MaxDesiatov Feb 26, 2024
260624a
Clean up `main` function signature in `SwiftPM.swift` (#7370)
MaxDesiatov Feb 27, 2024
03fef47
Revert "Exclude `XCBuildSupport` when building with CMake (#7358)" (#…
bnbarham Feb 27, 2024
92d65bf
Hide build system internals with `@_spi` (#7365)
MaxDesiatov Feb 27, 2024
b9fc53b
Adopt `package` in the test support module (#7372)
MaxDesiatov Feb 27, 2024
f042ffd
Enable `AccessLevelOnImport` in `SourceKitLSPAPI` (#7366)
MaxDesiatov Feb 28, 2024
f335083
Don’t include compiler in the command line arguments (#7379)
ahoppen Feb 29, 2024
64adc92
Add swift-testing support to `swift build --build-tests` (#7377)
grynspan Feb 29, 2024
9337c5e
Hide CLI commands API with `package` access control (#7381)
MaxDesiatov Feb 29, 2024
68b6236
Make ignore-lock a flag (#7384)
rauhul Feb 29, 2024
1d0be84
Remove uses of `temp_await` from `SwiftTestCommand` (#7382)
MaxDesiatov Mar 1, 2024
99a65c0
Add XDG Base Directory Specification support (#7386)
lordzsolt Mar 3, 2024
5185c03
Hide more llbuild-specific APIs (#7387)
MaxDesiatov Mar 4, 2024
8f653eb
Replace `ProcessEnv.vars` with `block` w/o API breakage (#7390)
MaxDesiatov Mar 5, 2024
259ec78
Remove previously deprecated `--enable-test-discovery` (#7391)
MaxDesiatov Mar 5, 2024
a5f9b6c
Revert "Remove previously deprecated `--enable-test-discovery`" (#7395)
bnbarham Mar 5, 2024
b49a227
Pass all arguments when initing testing parameters in `swift build` (…
grynspan Mar 6, 2024
4e24446
Fix comment wording in parameter description (#7401)
NakaokaRei Mar 13, 2024
24cd4a2
Replace getdtablesize() on Android (#7402)
finagolfin Mar 13, 2024
8268caa
Fix XCTest entrypoint for WASI by making it async (#7400)
kateinoigakukun Mar 14, 2024
e73cb5b
Suppress redundant linkage warnings due to dependency linkage propaga…
pusukuri Mar 19, 2024
adb8ea0
Write output-file-map.json atomically (#7406)
ahoppen Mar 20, 2024
d3ee3f6
Fix a memory leak in `DownloadTaskManager` and `DataTaskManager` (#7408)
ahoppen Mar 20, 2024
9d48dc7
Fix doc comment typo in `Sandbox.swift` (#7418)
MaxDesiatov Mar 21, 2024
a809fb5
PackageModelTests: fix warnings (#7421)
mnaruse Mar 25, 2024
2bc24f0
Use `arguments` instead of `argumentList` in the macro template (#7422)
ahoppen Mar 25, 2024
601d040
On Darwin, allow XCTest to be missing if we're only building swift-te…
grynspan Mar 26, 2024
451fbb2
Fix indentation in `Product.swift` (#7427)
coffmark Mar 27, 2024
5d177e6
Give clang target description access to the package it's associated with
xedin Mar 25, 2024
9a7dbb4
Add a workaround for swift-corelibs-foundation on Linux/Android
xedin Mar 25, 2024
9f8cf31
NFC: Add a test-case for swift-corelibs-foundation workaround
xedin Mar 26, 2024
42e86f9
NFC: Use mock toolchain for swift-corelib-foundation workaround testing
xedin Mar 26, 2024
f17f584
Suppress warnings for remote Clang targets
xedin Mar 25, 2024
c4a3af1
NFC: Add a test-case for `-w` in clang arguments for "remote" packages
xedin Mar 27, 2024
f529dae
[cxx-interop] Propagate interop flag to the test entry point target
egorzhdan Mar 28, 2024
8945865
Allow `swift-corelibs-foundation` to use unsafeFlags when used as a d…
xedin Mar 28, 2024
9386170
Make `supportedTriples` optional in artifactbundle metadata (#7432)
kateinoigakukun Mar 30, 2024
ea1730b
Improve error message about the PackageGraphError.productDependencyNo…
k-kohey Mar 30, 2024
0246381
UserToolchain: Unify handling of confg.json and provided-libraries.json
xedin Mar 29, 2024
26b4ed0
Utilities: Install provided-libraries.json
xedin Mar 29, 2024
fc8d9b3
Delete `Examples/package-info` directory as outdated (#7434)
MaxDesiatov Apr 2, 2024
8193ed6
Update Swift version to 5.9 in `.swiftformat` (#7438)
MaxDesiatov Apr 3, 2024
f4ab9a4
[PubGrub] Avoid resolving package versions twice in presence of prebu…
xedin Apr 4, 2024
549d781
Fix sendability warnings in `URLSessionHTTPClient` (#7441)
MaxDesiatov Apr 9, 2024
72b8498
NFC: Fix `@Sendable @escaping` order, symbol name typo (#7446)
MaxDesiatov Apr 9, 2024
017192c
Bump `swift-syntax` in template to `600.0.0-latest` (#7443)
MaxDesiatov Apr 9, 2024
382fc2e
Update XCBuildSupport CODEOWNERS
jakepetroules Apr 10, 2024
3dc16db
Add basic `QueryEngine` scaffolding w/ `Encodable` hashing (#7347)
MaxDesiatov Apr 10, 2024
e79066a
Add `HashEncoder` and `QueryEngineTests` (#7435)
MaxDesiatov Apr 11, 2024
8df1d14
[PackageDescription] Make `SwiftVersion` convertible to string
xedin Apr 3, 2024
7d47669
Implement per target swift version selection
xedin Apr 3, 2024
73769de
Add Swift language version 6 to Swift{Language}Version structs
xedin Apr 4, 2024
812fa45
Expose `computeTestTargetsForExecutableTargets` via SPI (#7455)
MaxDesiatov Apr 12, 2024
1c68e6c
Add VisionOS platform support to `PIF.PlatformFilter` (#7448)
Ryu0118 Apr 12, 2024
27996b8
Rename `ResolvedTarget` to `ResolvedModule` (#7459)
MaxDesiatov Apr 15, 2024
f249153
Enable strict concurrency checks on `Basics` module (#7451)
MaxDesiatov Apr 15, 2024
d8c8d0f
Fix empty token on swift package-registry login (Issue #7453) (#7454)
pwallrich Apr 15, 2024
d811faf
Add `UndirectedGraph` and `DirectedGraph` data structures (#7460)
MaxDesiatov Apr 16, 2024
2093d2c
Remove outdated doc comment in `Workspace+State.swift` (#7463)
MaxDesiatov Apr 17, 2024
36a3339
Add basic thresholds for `PackageGraphBenchmarks.swift` (#7462)
MaxDesiatov Apr 17, 2024
ec1bfe8
Remove use of `SWIFT_FORCE_*` build settings (#7464)
neonichu Apr 17, 2024
cb3b085
Revert "Revert "Support macros when cross-compiling (#7118)" (#7352)"…
MaxDesiatov Apr 17, 2024
9672bba
Add simple synthetic modules graph benchmarks (#7465)
MaxDesiatov Apr 18, 2024
1fa6298
pkgconfig: Apply PKG_CONFIG_SYSROOTDIR when generating paths (#7461)
euanh Apr 18, 2024
c7fba15
Use new SPI for SourceKitLSPAPITests (#7468)
bnbarham Apr 18, 2024
b556563
Add synthetic modules-with-macros graph benchmarks (#7466)
MaxDesiatov Apr 18, 2024
47573ce
[SE-0301] Updating a project and its manifest programmatically and fr…
DougGregor Apr 22, 2024
bc62af9
NFC: Add `Sendable` annotations to PackageDescription APIs
xedin Apr 18, 2024
d30647a
When adding a macro target to a package, create a dependency on swift…
DougGregor Apr 23, 2024
a408054
[SE-0301] Add swift package add-product command and supporting librar…
DougGregor Apr 23, 2024
d59191a
Make `SwiftSDK.init` available via `@_spi` (#7482)
MaxDesiatov Apr 23, 2024
4f83c6d
Only export required SwiftSyntax targets (#7489)
rintaro Apr 24, 2024
b9eb3c1
Include host triple test modules in `ResolvedPackage` (#7493)
MaxDesiatov Apr 24, 2024
dbd8945
build: remove the requirement to checkout swift-syntax (#7486)
compnerd Apr 25, 2024
6a7e578
Set environment variable to disable building swift-syntax in Swift 6 …
ahoppen Apr 25, 2024
3f9587c
Handle Swift versions unsupported by XCBuild (#7499)
neonichu Apr 25, 2024
6f12e54
[PackageGraph] Remove uses of `availableLibraries` from ModulesGraph.…
xedin Apr 15, 2024
6d0f18e
Add new `providedLibrary` package reference kind
xedin Apr 16, 2024
b88cd88
Expanded `providedLibrary` PackageReference to include origin
xedin Apr 16, 2024
5aa4835
Augment ManagedDependency to handle provided libraries
xedin Apr 16, 2024
3eb6910
[PackageModel] Add a new target kind - provided library
xedin Apr 17, 2024
fd7995e
Package LibraryMetadata together with its toolchain location
xedin Apr 18, 2024
139c6fa
[Resolution/Loading] Handle packages backed by a provided library
xedin Apr 18, 2024
6d7e795
[PubGrub] Expand provided library resolution tests
xedin Apr 19, 2024
78c68fe
Remove all extraneous uses of provided libraries throughout code base
xedin Apr 22, 2024
04b26ea
Switch ProvidedLibrary.vesion to produce a `Version`
xedin Apr 23, 2024
bb7f9e7
[PubGrub] Note that selected package version is backed by a provided …
xedin Apr 24, 2024
2ad3bf2
[Workspace] NFC: Handle loading of provided library managed dependenc…
xedin Apr 24, 2024
0486f94
[Workspace] Introduce a new package state - `usesLibrary`
xedin Apr 24, 2024
ec680ec
NFC: Remove `.providedLibrary` from PackageReference and its package …
xedin Apr 25, 2024
a76b970
[Tests] NFC: Add build plan tests for provided libraries
xedin Apr 25, 2024
6a719f4
[Workspace] Augment resolution based on Package.resolved to support p…
xedin Apr 25, 2024
71a722c
Remove `experimental` prefix from Swift SDK command (#7507)
MaxDesiatov Apr 26, 2024
5a4c024
Fix test targets that depend on macros and `swift-testing` (#7508)
grynspan Apr 26, 2024
ecf2e8f
Cleanup addition of swift-syntax (#7505)
bnbarham Apr 27, 2024
b0b652c
plugins: Pass correct dependency origin information to plugins (#7506)
euanh Apr 29, 2024
4aa8d78
Bring back `experimental-sdk` as deprecated for compatibility (#7512)
MaxDesiatov Apr 29, 2024
8cc63c1
NFC: Fix a typo in a label of `ModuleError.duplicateModulesScmAndRegi…
xedin Apr 29, 2024
656563f
Add end-to-end tests for `sdk` and `experimental-sdk` commands (#7517)
MaxDesiatov Apr 30, 2024
fe28c77
Add `swift build --enable-code-coverage` (#7518)
grynspan Apr 30, 2024
8db2401
Fix incorrect paths for library products with explicit linkage (#7519)
MaxDesiatov May 1, 2024
9aa348e
Report whether a target is part of the root package in the sourcekit-…
ahoppen May 1, 2024
35d3de2
[ModulesGraph] Fix association between `.tools` targets and their pac…
xedin May 2, 2024
5abdf52
Remove the addition of external-plugin-path for dev toolchains
bnbarham May 2, 2024
605e228
package -> @_spi public due to package exportability rule updates (#7…
elsh May 3, 2024
32442c6
Add `Sendable` annotations to SwiftVersion (#7527)
coffmark May 3, 2024
cca73b2
`swift sdk`: print warnings on stderr instead of stdout (#7532)
MaxDesiatov May 8, 2024
a37631a
Teach swift package add-target --type test about swift-testing (#7481)
DougGregor May 8, 2024
8ca3091
Pass through swift-testing's experimental JSON streams from `swift te…
grynspan May 8, 2024
8b12909
[Package/ModuleGraph] Allow cyclic package dependencies if they don't…
xedin May 8, 2024
4a6660a
Align `swift sdk` configuration subcommand with proposal text (#7535)
MaxDesiatov May 8, 2024
8698475
Mark `buildSettingsDescription` as `@_spi` in `Target.swift` (#7542)
MaxDesiatov May 9, 2024
0d670e7
Add API for background preparation in SourceKit-LSP (#7540)
ahoppen May 9, 2024
213844c
Update -swift-version to default to 6 for swift-tools-version 6
bnbarham Apr 18, 2024
e53bb51
[PackageModel] SwiftTarget: Rename `swiftVersion` into `toolsSwiftVer…
xedin May 9, 2024
3bedafa
[BuildDescription] SwiftTargetBuildDescription: Rename `swiftVersion`…
xedin May 9, 2024
e843f4e
Pass through `--experimental-event-stream-version` to swift-testing. …
grynspan May 10, 2024
9183b7c
[PackageModel] Associated swift version build setting with `SWIFT_VER…
xedin May 10, 2024
daea522
Add two `Sendable` annotations to enable building SourceKit-LSP in Sw…
ahoppen May 14, 2024
6ed0ce3
Don’t disable Swift 6 mode in swift-syntax (#7545)
ahoppen May 14, 2024
4f01a84
Expose the build triple of a `BuildTarget` in `SourceKitLSPAPI` (#7555)
ahoppen May 14, 2024
ecf3e8c
Introduce manifest editing API for "add target dependency" (#7552)
DougGregor May 14, 2024
30ea738
[CODEOWNERS] NFC: Remove Tom Doron
xedin May 14, 2024
a2e0e71
[CODEOWNERS] NFC: Add Jake Petroules and Francesco Mikulis-Borsoi as …
xedin May 14, 2024
eb3abcd
[PackageModel] Add a way to specify a default setting assignment
xedin May 13, 2024
b0e724b
[Package/Build] Remove `toolsSwiftVersion` from SwiftTarget in favor …
xedin May 13, 2024
3793551
[PIF] Re-implement swift language version handling
xedin May 13, 2024
e6d2128
Initial implementation of target dependencies on same-package product…
stackotter Feb 11, 2024
423c27c
Add syntax for @stackotter same deps, fix return.
furby-tm May 15, 2024
9769a5b
Create an ugly fugly hack (need to fill out dependencies).
furby-tm May 16, 2024
ef4e3e0
Fixup same package product dependencies.
furby-tm May 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ name: Bug Report
description: Something isn't working as expected
labels: [bug]
body:
- type: checkboxes
id: cat-preferences
attributes:
label: "Is it reproducible with SwiftPM command-line tools: `swift build`, `swift test`, `swift package` etc?"
description: "Issues related to closed-source software are not tracked by this repository and will be closed. For Xcode, please file a feedback at https://feedbackassistant.apple.com instead."
options:
- label: Confirmed reproduction steps with SwiftPM CLI.
required: true
- type: textarea
attributes:
label: Description
Expand Down
2 changes: 1 addition & 1 deletion .swiftformat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## File options

--swiftversion 5.7
--swiftversion 5.9
--exclude .build

## Formatting options
Expand Down
Loading