yonaskolb / Mint

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

Provide MintFile when using run #103

Closed TheCoordinator closed 6 years ago

TheCoordinator commented 6 years ago

Hi @yonaskolb ,

Currently I'm using mint via a Mintfile in the root of my project and using mint run for every tool that I need. I'm facing an issue where if I have a script that uses Mint and it's not in the same directory as Mintfile, it would automatically gets the latest version of that tool instead of picking up the version mentioned in Mintfile.

I was hoping to see if there is a way to pass the MintFile path to mint so that it picks it's versioning from there rather than always relying on being called from the same place. On the top of my head something similar to Makefile with this format make --file /path/to/Makefile install.

What do you think?

TheCoordinator commented 6 years ago

Found that --mintfile actually exists just not documented. Will close the issue.

AlexisQapa commented 5 years ago

Had the same issue, this would definitely be a great addition to the doc.