-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
sql-sync should validate aliases #3103
Labels
Comments
We do validate aliases - drush/src/Commands/sql/SqlSyncCommands.php Line 149 in 53a809e
|
My results:
Are you sure you're using the most up-to-date version of Drush 9? |
We're on beta7 (latest stable), it looks like that validation was only added in the last couple weeks, so it'll be in beta8 |
beta8 has been released now 🎉 |
Reopen if there is a problem. |
Thanks I will try beta8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you run sql-sync with an invalid alias (i.e.
drush sql-sync @foo.remote @foo.local
, where@foo.remote
isn't a valid alias), you get an obscure error:This looks like a bug, but in fact is just Drush's way of telling you that you are using an invalid alias.
Ideally sql-sync would validate the provided aliases and provide a more helpful error message, such as if you provide an invalid alias to
drush si
:The text was updated successfully, but these errors were encountered: