Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-24339

Husky pre-commit task fails after latest update

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done-Errata
    • Normal
    • 4.15.0
    • 4.15.0
    • Management Console
    • None
    • No
    • False
    • Hide

      None

      Show
      None
    • NA
    • Release Note Not Required
    • In Progress

    Description

      After updating our husky dependency, the pre-commit hook might fail on some systems if their PATH env var is not properly configured:
      {{}}

      Running husky pre-commit hook...
      frontend/.husky/pre-commit: line 6: lint-staged: command not found
      husky - pre-commit hook exited with code 127 (error)
      husky - command not found in PATH=<user path>

       

      The PATH env var must include "./node_modules/.bin" for the husky pre-commit hook to work, which should be documented in the README.

      Attachments

        Activity

          People

            jhadvig@redhat.com Jakub Hadvig
            rh-ee-jonjacks Jon Jackson
            Yanping Zhang Yanping Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: