Skip to content
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

Slashes in URLs in doc comments of hook_post_update_NAME get stripped #6087

Open
jurgenhaas opened this issue Aug 12, 2024 · 1 comment
Open

Comments

@jurgenhaas
Copy link
Contributor

Here is an example code from the ECA module:

/**
 * Re-run the 2.0.0 post update hook.
 *
 * @see https://www.drupal.org/project/eca/issues/3460491
 */
function eca_post_update_rename_tokens_2_0_1(): void {
  eca_post_update_rename_tokens_2_0_0();
}

The output on the console when running drush updatedb strips the slashes from the URL, and it then looks like this:

 -------- --------------------- ------------- --------------------------------- 
  Module   Update ID             Type          Description                      
 -------- --------------------- ------------- --------------------------------- 
  eca      rename_tokens_2_0_2   post-update   Re-run the 2.0.0 post update     
                                               hook.   @see                     
                                               https:www.drupal.orgprojectecai  
                                               ssues3460491                     
 -------- --------------------- ------------- --------------------------------- 

The same can be found in modules like encrypt, restui, simple_sitemap and certainly others.

This has been tested in Drush 12.5 and 13.0 with the same result.

Not sure where exactly the slashes get removed. I guess this could be Drush itself or maybe Laravel?

@weitzman
Copy link
Member

weitzman commented Sep 6, 2024

I don't know either. The sub-command that is showing that table is drush updatedb:status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants