Add --post-install-file option to init subcommand too#496
Add --post-install-file option to init subcommand too#496Cyberbeni wants to merge 1 commit intoswiftlang:mainfrom
Conversation
|
Thank you for raising this issue and tackling the problem. I've been considering a different approach. The outputted post install command from What would be better is something that's more durable, where the user can request it on-demand at any time. If there was a subcommand for swiftly that's responsible for checking system dependency mismatches, and optionally running a command (likely under sudo) to bring in those dependencies could be a better user experience. The Some consideration will be needed in allowing only certain types of commands to be run as root. Perhaps an allow-list or regular expression could help there. |
partial fix for #396
Someone will also have to update the website to suggest using this option after a version has been released: https://www.swift.org/install/linux/
I couldn't get it to build due to
error: 'archive.h' file not foundbut the new code shouldn't have any issues.