yonaskolb / Mint

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

Allow running offline without specified version #166

Closed vknabel closed 4 years ago

vknabel commented 4 years ago

When the version cannot be resolved while being offline, this PR will try to find locally installed versions. It will try to use the latest version. This fixes #164

yonaskolb commented 4 years ago

Could you please rebase off master @vknabel. That should fix the tests.

Not sure if you want to integrate some of the work that was just done in https://github.com/yonaskolb/Mint/pull/170, about access the local packages via the Cache. I haven't investigated closely if it will help your code, but it should

vknabel commented 4 years ago

@yonaskolb yes of course!

I replaced the path logic to determine currently installed versions with the cache of #170, but I am not sure if this part is fine.

yonaskolb commented 4 years ago

@vknabel could you add a changelog entry as well

vknabel commented 4 years ago

@yonaskolb oh yes, of course!

vburojevic commented 3 years ago

This doesn't seem to work in the latest version. If I run it locally the command fails @vknabel @yonaskolb.