Is there any plan in the Swift PM team to add an
install command to the Swift Package Manager? I think it would be a really useful feature
A first version could support executable products only. So with:
$ swift install https://url.to/git/repo # or $ swift install # installs the current package
Swift PM would compile all the Package executable products in release mode and install them in a known location (eg.
Supporting installed libraries could be a bit more complicated as it would require deciding how to handle the Package dependencies but I think it would be very useful. For example, right now the only quick/easy-way to try a Swift PM library is to use
swift run --repl (but that way you can only access one package per REPL session). Installing library products would mean that you could use all of them in a REPL session or in a Jupyter Notebook.