Problem/Motivation

After downloading the module, you automatically assume that you can install it using the same namespace, as you can everywhere else.

But you get an error:

$ composer require drupal/chatgpt_plugin
$ drush in chatgpt_plugin
In PmCommands.php line 333:
Unable to install modules chatgpt_plugin due to missing modules chatgpt_plugin

Ideally, the namespace (project URL) and file names should be aligned. The project namespace is chatgpt_plugin (https://www.drupal.org/project/chatgpt_plugin) but file names are chatgpt.info.yml ...

These files should probably be called chatgpt_plugin.info.yml, chatgpt_plugin.module, etc. instead.

This way people can download and install using the same namespace, without getting an error.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

ressa created an issue. See original summary.

anup.sinha’s picture

Status: Needs work » Needs review

Hi @ressa,

Actually earlier the folder structure was chatgpt_plugin/chatgpt. Now in the 1.0.0 version I moved out all the code from chatgpt folder to direct chatgpt_plugin to remove the sub-folder but I forgot to rename the files and namespaces. Thanks for reporting the bug.

I have done all the changes and committed it into in the branch 1.0.x. Please test the chatgpt_plugin 1.0.x-dev version and let me know please if there is any more issue.

Thanks & Regards,
Anup

ressa’s picture

Status: Needs review » Reviewed & tested by the community

Perfect @anup.sinha: With the latest dev-release I can use the chatgpt_plugin namespace both for downloading with Composer and installing with Drush. Thanks a lot, and have a great day.

anup.sinha’s picture

Status: Reviewed & tested by the community » Fixed
anup.sinha’s picture

Status: Fixed » Closed (fixed)
ressa’s picture

Thanks, feel free to give credit to both of us, for creating the issue, and fixing it.

anup.sinha’s picture