Composer.json spelling error

Created on 21 January 2025, 3 months ago

Problem/Motivation

The composer.json file for the viewsreference module contains a misspelling in the conflict section. The package name is written as drupal/viewsreferennce, which has an extra "n" in the word "reference." This misspelling could lead to unexpected behavior or confusion for developers.

Steps to reproduce

  1. Inspect the composer.json file in the viewsreference module.
  2. Locate the conflict section.
  3. Notice the misspelled package name drupal/viewsreferennce.

Proposed resolution

Correct the spelling of the package name in the conflict section from drupal/viewsreferennce to drupal/viewsreference.

Remaining tasks

  • Fix the spelling in the composer.json file.
  • Submit a patch or merge request for review.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @trackleft2
  • πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ
  • Pipeline finished with Failed
    3 months ago
    Total: 327s
    #401875
  • Pipeline finished with Success
    3 months ago
    #401886
  • πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

    After removing the conflict section and running composer require drupal/viewsreferennce I did see that there was an old project with that name.

    ➜  viewsreference-2922687 git:(2922687-preselect-views-by) βœ— lando composer require drupal/viewsreferennce
    ./composer.json has been updated
    Running composer update drupal/viewsreferennce
    No patches supplied.
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires drupal/viewsreferennce * -> satisfiable by drupal/viewsreferennce[1.0.0-alpha1, 1.0.0-alpha2].
        - drupal/viewsreferennce[1.0.0-alpha1, ..., 1.0.0-alpha2] require drupal/core ~8.0 -> found drupal/core[8.0.0-beta6, ..., 8.9.x-dev] but the package is fixed to 10.3.11 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    
    Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
    You can also try re-running composer require with an explicit version constraint, e.g. "composer require drupal/viewsreferennce:*" to figure out if any version is installable, or "composer require drupal/viewsreferennce:^2.1" if you know which you need.
    
    

    So, I'm going to close this issue as closed works as designed.

  • πŸ‡¬πŸ‡§United Kingdom scott_euser

    I think I went through the same thing when I first started helping out with the module :)

Production build 0.71.5 2024