Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[AssetMapper] Warning thrown when dependency version is within valid range #54610

Closed
@tacman

Description

@tacman

Symfony version(s) affected

6.4

Description

when installing a package, I'm getting

 [warning] datatables.net-scroller-bs5 requires [email protected] - 2 but version 2.0.3 is installed.

but 1.11 - 2 includes 2.0.3

image

Checking with the npm SemVer Calculator appears to confirm this:

How to reproduce

bin/console importmap:require datatables.net-scroller-bs5
bin/console importmap:update
[warning] datatables.net-scroller-bs5 requires [email protected] - 2 but version 2.0.3 is installed.
[warning] datatables.net-scroller-bs5 requires [email protected] - 2 but version 2.0.3 is installed.

 [OK] Updated all packages in importmap.php.                                                                            

Possible Solution

Perhaps the way the semver string is being parsed isn't including the minor / patch releases. I had a different but similar issue with phar-io/version

phar-io/version#34

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions