Skip to content

refactor PackageDependencyDescription towards identity changes #3239

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

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Feb 6, 2021

motivation: improve code infrastrucuture towards fixing correctness issues with identity

changes:

  • rename PackageDependencyDescription::url to PackageDependencyDescription::location to reflect its true meaning
  • rename PackageDependencyDescription::name to PackageDependencyDescription::nameForTargetDependencyResolutionOnly to make sure its not used for wrong reasons
  • move "file://" prefix handing from PackageDependencyDescription::init to PackageDependencyDescription::init(json) which where all the other location validation is done
  • addjsut call-sites
  • adjust and add tests

motivation: improve code infrastrucuture towards fixing correctness issues with identity

changes:
* rename PackageDependencyDescription::url to PackageDependencyDescription::location to reflect its true meaning
* rename PackageDependencyDescription::name to PackageDependencyDescription::nameForTargetDependencyResolutionOnly to make sure its not used for wrong reasons
* move "file://" prefix handing from PackageDependencyDescription::init to PackageDependencyDescription::init(json) which where all the other location validation is done
* addjsut call-sites
* adjust and add tests
@tomerd
Copy link
Contributor Author

tomerd commented Feb 6, 2021

@swift-ci please smoke test

@tomerd tomerd self-assigned this Feb 6, 2021
@tomerd
Copy link
Contributor Author

tomerd commented Feb 6, 2021

/home/buildnode/jenkins/workspace/swift-package-manager-Linux-smoke-test@2/branch-main/build/buildbot_incremental/libdispatch-linux-x86_64/libBlocksRuntime.so && :
20:47:00 
<unknown>:0: error: module file '/home/buildnode/jenkins/workspace/swift-package-manager-Linux-smoke-test@2/branch-main/build/buildbot_incremental/xctest-linux-x86_64/module-cache/2MWQC4BFSBUP5/SwiftShims-2TKFFX38VHX6U.pcm' is out of date and needs to be rebuilt: signature mismatch

cc @shahmishal

@tomerd
Copy link
Contributor Author

tomerd commented Feb 6, 2021

@swift-ci please smoke test linux

@abertelrud
Copy link
Contributor

Reviewed this as part of #3244, which includes these changes.

@tomerd tomerd merged commit e9c883d into swiftlang:main Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants