# Factoring out a new repo for shared code between llbuild & SwiftPM

**URL:** <https://forums.swift.org/t/factoring-out-a-new-repo-for-shared-code-between-llbuild-swiftpm/11429>\
**Category:** Package Manager\
**Tags:** llbuild\
**Created:** [March 27, 2018, 3:33pm UTC](https://forums.swift.org/t/factoring-out-a-new-repo-for-shared-code-between-llbuild-swiftpm/11429 "2018-03-27T15:33:18Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![ddunbar](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ddunbar/32/1933_2.png) [@ddunbar](https://forums.swift.org/u/ddunbar)\
**Post date:** [August 29, 2019, 1:28pm UTC](https://forums.swift.org/t/factoring-out-a-new-repo-for-shared-code-between-llbuild-swiftpm/11429/21 "2019-08-29T13:28:44Z")

</div>

SourceControl should stay entirely in SwiftPM

---

<div class="post-metadata">

**Author:** ![ddunbar](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ddunbar/32/1933_2.png) [@ddunbar](https://forums.swift.org/u/ddunbar)\
**Post date:** [August 29, 2019, 1:29pm UTC](https://forums.swift.org/t/factoring-out-a-new-repo-for-shared-code-between-llbuild-swiftpm/11429/22 "2019-08-29T13:29:02Z")

</div>

Yup and yup

---

<div class="post-metadata">

**Author:** ![benjamin\_herzog](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/benjamin_herzog/32/22799_2.png) [@benjamin\_herzog](https://forums.swift.org/u/benjamin_herzog)\
**Post date:** [August 29, 2019, 1:34pm UTC](https://forums.swift.org/t/factoring-out-a-new-repo-for-shared-code-between-llbuild-swiftpm/11429/23 "2019-08-29T13:34:52Z")

</div>

Ok, then I'll leave that where it is and move the depending code in TestSupport to SPMTestSupport. (+ rename TestSupport to TSCTestSupport)

---

<div class="post-metadata">

**Author:** ![ddunbar](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ddunbar/32/1933_2.png) [@ddunbar](https://forums.swift.org/u/ddunbar)\
**Post date:** [August 29, 2019, 1:37pm UTC](https://forums.swift.org/t/factoring-out-a-new-repo-for-shared-code-between-llbuild-swiftpm/11429/24 "2019-08-29T13:37:29Z")

</div>

Awesome, thanks!

---

<div class="post-metadata">

**Author:** ![benjamin\_herzog](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/benjamin_herzog/32/22799_2.png) [@benjamin\_herzog](https://forums.swift.org/u/benjamin_herzog)\
**Post date:** [August 29, 2019, 4:07pm UTC](https://forums.swift.org/t/factoring-out-a-new-repo-for-shared-code-between-llbuild-swiftpm/11429/25 "2019-08-29T16:07:45Z")

</div>

I opened a PR for the changes in SwiftPM [here](https://github.com/apple/swift-package-manager/pull/2325) and the initial commit for tools-support-core [here](https://github.com/apple/swift-tools-support-core/pull/1). Both are marked as WIP to improve documentation before merging but are technically in a reviewable (and working) state.  
The tools-support-core repository has a bootstrap script to automate copying the sources from swiftpm (taking the swiftpm dir as input).  
Feedback is welcome! 🙂

---

<div class="post-metadata">

**Author:** ![allevato](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/allevato/32/385_2.png) [@allevato](https://forums.swift.org/u/allevato)\
**Post date:** [September 23, 2019, 9:19pm UTC](https://forums.swift.org/t/factoring-out-a-new-repo-for-shared-code-between-llbuild-swiftpm/11429/26 "2019-09-23T21:19:27Z")

</div>

Is there any other critical work planned for this repo before we can tag an initial release that other packages (like swift-format) can depend on?

---

<div class="post-metadata">

**Author:** ![Aciid](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/aciid/32/429_2.png) [@Aciid](https://forums.swift.org/u/Aciid)\
**Post date:** [September 23, 2019, 9:28pm UTC](https://forums.swift.org/t/factoring-out-a-new-repo-for-shared-code-between-llbuild-swiftpm/11429/27 "2019-09-23T21:28:01Z")

</div>

Hm, I don't think so. @ddunbar/@benjamin_herzog?

---

<div class="post-metadata">

**Author:** ![benjamin\_herzog](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/benjamin_herzog/32/22799_2.png) [@benjamin\_herzog](https://forums.swift.org/u/benjamin_herzog)\
**Post date:** [September 24, 2019, 11:27am UTC](https://forums.swift.org/t/factoring-out-a-new-repo-for-shared-code-between-llbuild-swiftpm/11429/28 "2019-09-24T11:27:33Z")

</div>

Yeah, me neither. I would like to see some infrastructure being moved/rebuild around declaring commands but that is not necessarily needed for an initial release.

[Previous page](https://forums.swift.org/t/factoring-out-a-new-repo-for-shared-code-between-llbuild-swiftpm/11429.md?page=1)
