目录
目录README.md

sampleMonorepo

Swift

An example of how to organize monorepository that provides SPM modules for the outside world. See https://github.com/kukushechkin/sampleProject for how to use those dependencies.

Unfortunetely, SPM explicitly forbids mixing of versioned and unversioned dependencies, that’s why components cannot be Swift Packages inside another big Swift Package. See .revisionDependencyContainsLocalPackage in https://github.com/apple/swift-package-manager for more details.

Conclusion? No way. While root Package.swift is ok for rebuilding modules, it will not be able to handle deendencies.

What will work — make root Package.swift with path modules dependencies, clone it and use as path dependency in your project.

关于
46.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号