Skip to content

[Bug?]: Validation error after increasing length of hash #6880

@pudovmaxim

Description

@pudovmaxim

Self-service

  • I'd be willing to implement a fix

Describe the bug

After fixing the bug in this issue #6827 via the PR #6829, the hash length was increased, causing a hash validation error when explaining of peer requirements.

To reproduce

  1. Run yarn explain peer-requirements
  2. Get list of dependencies
......
p34e008 → ✓ webpack@npm:5.93.0 [fe566] doesn't provide uglify-js to terser-webpack-plugin@npm:5.3.10 [4d3e7]
pe66eeb → ✓ webpack@npm:5.93.0 [fe566] provides webpack@npm:5.93.0 [fe566] to terser-webpack-plugin@npm:5.3.10 [4d3e7]
  1. Check one of that hash yarn explain peer-requirements pe66eeb
  2. Got error:

Usage Error: Invalid value for hash: expected to match the pattern /^p[0-9a-f]{5}$/ (got "pe66eeb")

Environment

System:
    OS: Linux 5.19 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H
  Binaries:
    Node: 20.14.0 - /tmp/xfs-5c430c82/node
    Yarn: 4.9.3-dev - /tmp/xfs-5c430c82/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v20.14.0/bin/npm

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions