Quantcast
Channel: Package Manager - Swift Forums
Viewing all articles
Browse latest Browse all 167

Support for rewriting package urls?

$
0
0

Hi,
I am working for government and we cannot use GitHub. In order to use SPM I wrote a script that mirrors git repositories from GitHub into our internal bitbucket server. There, I can only use a single space "Vendors" so I have to change the name from i.e. "apple/swift-syntax" to "Vendor/apple.swift-syntax".

While this works for a single package, it won't work for dependencies. I found no way to add some kind of rewrite mechanism to SPM so the next best thing was for me to rewrite the git repositories (EXT -> rewrite -> INT-READONLY). While this works it is very cumbersome and I have to constantly update my binary project that does the rewriting. At least I found a reasonable approach by appending some swift code to the end of each Package*.swift file in each commit in each branch of a repository.

The question I have is:

  • Am I missing something here? Is there a way to use Xcode, or swift package on a development machine that has no access to the internet?

  • If not, what is the best way to suggest a feature request and to whom should I send it?

Thanks
Andreas Pardeike
Swedish Police IT Department

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 167

Trending Articles