This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
Handle project that uses rules_spm and one of its dependencies also uses rules_spm #86
Labels
enhancement
New feature or request
Project A - Has dep on a package (e.g. swift-nio).
Project B - Has dep on Project A and a package that Project A uses as a dep (e.g. swift-nio)
Problem:
spm_repositories
for Project A and B have the same name, we will get a duplicate declaration.spm_repositories
for Project A and B have the same names, we will get duplicate symbol errors during compile/linkingOptions:
Package.swift
; Project B would usespm_repositories
to use the dependency.rules_spm
deps logic;rules_spm
would provide their package info (i.e., deps and platforms) via function.spm_repositories
.Option 1 Thoughts
Package.swift
; it could be copied to source using rules_updatesrc.local_repository
)spm_pkg
does support local packages. So, this may not be a big deal.Option 2 Thoughts:
rules_spm
would implement a function that returns their package info (deps and platforms)The text was updated successfully, but these errors were encountered: