swift package show-dependencies
will modify workspace-state.json
every time
#5693
Labels
swift package show-dependencies
will modify workspace-state.json
every time
#5693
Uh oh!
There was an error while loading. Please reload this page.
Description
swift package show-dependencies
will modifyworkspace-state.json
every time but the content could be exactly the same as before.As far as I understand, it should be a read action that should not trigger any write action.
And if I modified
package.resolved
then runswift package show-dependencies
,package.resolved
will be updated twice (one deletion and one creation?) but the content could be exactly the same as before.if some extension is watching the file event of
package.resolved
, it would be a dead loopCould you check if these are issues?
Expected behavior
swift package show-dependencies
don't trigger file changes even the content is sameI've read the code, it seems
save()
action is performed every time even if there is no change.package.resolved
is the same case. maybe it's better to avoid theseActual behavior
swift package show-dependencies
update the file everytime even the content is sameSteps to reproduce
No response
Swift Package Manager version/commit hash
Xcode13.4
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 LF02X81220140AM 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: