-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overwrite prompt of Use gets cancelled in non-interactive Linux environments #79
Comments
Actually, a
|
The prompt being overridden here is a pretty important one--it's verifying that you're okay with overwriting existing third party tools with special versions that Swift bundles in its own toolchain. Doing so can be extremely disruptive, since these Swift-specific versions will not match the behavior of the old versions they're overwriting. That said, I can imagine this being useful in in containerized environments where you might only really care about Swift being installed and the existing executables don't matter, though this flag should still be used with extreme care. If I recall, your use case was that you had a corrupt installation of swiftly and needed to overwrite the |
When running
swiftly use
in a non-interactive environment, in my case a Heroku buildpack, the following section in the Linux implementation ofuse
gets immediately cancelled: Linux.swift#L69-L86, and the symlinks are never overwritten.My use case would greatly benefit from a
--disable-confirmation
flag, like the swiftly install script does, which would suppress the file list (it's noise) and would silently overwrite the symlinks.The text was updated successfully, but these errors were encountered: