Should I checkout corresponding dependencies to the correct branch when building Swift?

Hi:
I'm still new to the Swift community and is trying to Swift from a stable version. I have currently checked out the swift-5.0-branch but I'm not sure if I should manually check the other dependencies like swift-llvm into this branch as well for the building.

Thanks

Welcome, Naville! Your instinct is correct: the various repositories do have to be in sync to get a successful build. The update-checkout tool in the utils directory is designed to help with this:

% utils/update-checkout --scheme swift-5.0-branch

This will make sure that all the repositories are in sync.

1 Like

Thanks! In my humble opinion, it would be more appropriate for the checkout script to automatically detect this though

A fair point. A number of us use update-checkout deliberately to update the branches we have checked out (maybe they're development branches), but it would make sense when cloning new repos to infer from the one you're on. Does that sound like a good balance?

One way to accomplish this would be to change "default-branch-scheme": "master" in update-checkout-config.json for each new branch.

Terms of Service

Privacy Policy

Cookie Policy