Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way of including local dependencies #13

Open
visav opened this issue Jan 19, 2018 · 2 comments
Open

Add a way of including local dependencies #13

visav opened this issue Jan 19, 2018 · 2 comments

Comments

@visav
Copy link

visav commented Jan 19, 2018

I'm experimenting with beak to automate some tasks and it's been a great experience so far. Thank you for creating this great tool! It's well documented and delivers what it promises.

Currently beak supports dependencies with // beak: {repo} {library} {library} ... @ {version} syntax. I'm wondering if this syntax / dependency handling could be enhanced to enable local package dependencies.

To me it feels like a single beak.swift file can become bloated if one wants to utilise this great tool for many tasks. In order to split some project specific solutions for different problems, I would love the ability for beak to include from a local package. This could follow SPM dependency format for local dependencies. E.g.:

// beak.swift

// - github
// beak: kareman/SwiftShell @ 4.0.0
// - local
// beak: ../MyTasks

import SwiftShell
import MyTasks

I don't know if this aligns with the philosophy of beak, but I think this could be very useful.

@yonaskolb
Copy link
Owner

Thanks for the kind words @visav
Yeah, that should be possible. It could either be a local package or simply a directory with loose files in it (or even another single swift file).
If you'd like to submit a PR that would be great! 😄

@Jeehut
Copy link

Jeehut commented Oct 25, 2018

I just made a similar suggestion to this in #40 and would vulonteer to implement it. Does it look good to you guys? If yes, I will try to implement it in the coming weeks.

I created a new issue since it's not exactly the same idea as here the title suggests I would need to create local packages in order to split the beak.swift files into several files. For me that's too much overhead ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants