JohnSundell / Marathon

[DEPRECATED] Marathon makes it easy to write, run and manage your Swift scripts 🏃
MIT License
1.86k stars 78 forks source link

[WIP]: Multi dependency package support & other proposed fixes/improvements #193

Open bitwit opened 6 years ago

bitwit commented 6 years ago

This PR is a WIP of fixes for issues in #189, #191 as well as some other things I'll mention in notes below.

The changes are primarily trying to address importing dependencies from a package that may not go by the same name as the package, or situations where there are multiple libraries from a package that you are trying to import. Along the way, I noticed some issues with the Master Package Description and the way it acts as a template for the Package.swift files used in every script. As a result, in this current WIP code, the Master Package.swift is mostly unused and package update functionality is currently disabled.

I was mostly working with MarathonCore directly, not via CLI, but problems with the Master Package Description pattern I saw were:

Notes:

This work is currently incomplete but I wanted to open a PR with my first shot at the problem as a proposal. Since it's a big change and there is lots of room for discussion.

Thanks for reading/reviewing!