yonaskolb / Mint

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

Added fixes to better support packages with multiple origins and multiple executables #170

Closed acecilia closed 4 years ago

acecilia commented 4 years ago

Added fixes to cover the following two scenarios: 1- When a package with the same name is installed from different origins. For example: yonaskolb/xcodegen and acecilia/xcodegen. 2- When a package produces multiple executables.

The main additions of this PR are:

  1. A rewrite of the list option.
  2. A fix for the run option, so it asks for which package to run when multiple origins are detected, instead of just running the first match.
  3. A rewrite of the uninstall option, which includes the following fix: previously, the name for the symlink to remove was calculated using the passed package name, which could be partial (for example sample instead of samplepackage), resulting on the symlink not being removed. Also added tests
acecilia commented 4 years ago

This PR I think solves https://github.com/yonaskolb/Mint/issues/124 and makes https://github.com/yonaskolb/Mint/pull/125 redundant