You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
workspace-state.json does not provide an up to date list of the dependencies a package requires.
Expected behavior
If I delete a package dependency from Package.swift and then run swift package resolve it will remove that package from workspace-state.json.
Actual behavior
Instead the package remains in the workspace-state.json.
Steps to reproduce
Create package swift package init
Add dependency to dependencies array in Package.swift
Resolve package swift package resolve
Remove dependency from dependencies array in Package.swift
Resolve package swift package resolve
Look at contents of .build/workspace-state.json
Swift Package Manager version/commit hash
Swift 5.6.1
Swift & OS version (output of swift --version && uname -a)
swift-driver version: 1.45.2 Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
Target: arm64-apple-macosx12.0
Darwin Adams-MBP-M1-Max.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered:
Description
workspace-state.json
does not provide an up to date list of the dependencies a package requires.Expected behavior
If I delete a package dependency from
Package.swift
and then runswift package resolve
it will remove that package fromworkspace-state.json
.Actual behavior
Instead the package remains in the
workspace-state.json
.Steps to reproduce
swift package init
dependencies
array in Package.swiftswift package resolve
dependencies
array in Package.swiftswift package resolve
.build/workspace-state.json
Swift Package Manager version/commit hash
Swift 5.6.1
Swift & OS version (output of
swift --version && uname -a
)swift-driver version: 1.45.2 Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
Target: arm64-apple-macosx12.0
Darwin Adams-MBP-M1-Max.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered: