-
Notifications
You must be signed in to change notification settings - Fork 3
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
What does this message indicate? #19
Comments
That error message seems to come from git. A git command tried to do something with 'web' but that 'web' was not available when the command was run. Probably is this line: drupal-updater/src/UpdaterCommand.php Line 388 in 4951d06
More info would be needed to dig into this. Are you suing a repository with a 'web' folder with the Drupal root? |
in this case, my project uses |
The recommended way is using However, you can create a symlink |
We can try to add a way to set the Drupal root folder name so it i si possible to change |
I confirm is the line quoted here: #19 (comment) . That is done because the core updates may change docroot files (s.e.: default.settings.php). It is true that web is the standard, but the error would persist by adding a symlink because git does not let add files using the symlink as a directory. What do you think about using drupal-finder find the docroot @rsanzante ? If it works okay, we save time to add the folder and prevent this error when the command is launched without parameters. |
IMHO we should prioritize automatic discovery over configuration, +1 to include drupal-finder |
Drupal-finderiwas used in Drush Launcher but Launcher was abandoned because is not compatible with Drush 12, see drush-ops/drush-launcher#105. In that issue they state that drupal-finder requires some paths in composer.json, although I guess it is a special requirement because how they is finder. However, we would need to test it to be sure we don't hit the same wall. Another simple option is to use drush:
That should return the absolute path of the Drupal root. We can try this command, and if there's no error use the path returned, and if there's and error use the default |
ah, and the simplest one is to use an environment variable. |
This is interesting. Now drush uses composer runtime ap, which lets know where a package is installed. So their drupal finder class looks where core is installedi: https://github.com/drush-ops/drush/blob/12.x/src/DrupalFinder/DrushDrupalFinder.php#L26 :
Also, after talking together, we will work on detecting root by:
If none of this was allows detecting the docroot, an error will be displayed assuming no drupal root has been found. |
wow, love the responsiveness. thanks all! |
fatal: pathspec 'web' did not match any files
The script continues on just fine, so is this anything we should be paying attention to?
The text was updated successfully, but these errors were encountered: