yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.27k stars 122 forks source link

Checkout using custom Git URL, branch, commit and path #187

Open cristi-lupu opened 4 years ago

cristi-lupu commented 4 years ago

Hey @yonaskolb! 👋

I see that Mintfile accepts repositories of GitHub and you can specify only the tag some_user_or_organization/repo@tag.

Instead, I would like to see more like DSL what will help to add more parameters (such as branch, commit and path) and good maintenance instead of relying on string format:

mint {
    dependency(repoURL: "git@github.com:yonaskolb/Mint.git", branch: "master")
    dependency(path: "../development/some_other_swift_package/")
    dependency(repoURL: "git@github.com:realm/SwiftLint.git", commit: "bda1cd56e0bbcd4a68828394137e32d17c92963b")
}

or doing the same thing but in JSON, or even as Ruby script.

bivanov commented 1 year ago

Is it planned at some point?