Closed kaidohallik closed 5 years ago
Thanks @kaidohallik for reporting. I will handle this.
Why is this closed? The issue still exists. "lint-staged": "^9.4.1", "husky": "^3.0.8",
@FlorianLeitgeb, please don't comment on a closed issue. If you see an issue, kindly open a new ticket with requisite details.
FYI, we reverted to the old version in our templates. Check this: https://github.com/jhipster/generator-jhipster/blob/56a5d39cb086ed823af3bf1c7479e766da0f740f/generators/client/templates/angular/package.json.ejs#L113
Overview of the issue
10254 upgraded
lint-staged
version from 8.2.0 to 9.2.3.After that initial generated application is not committed to Git in Windows, the following error occurs:
Git commit error in Windows
lint-staged
has some breaking changes from version 9.0.0 (see https://github.com/okonet/lint-staged/releases), one of them is: "Very long arguments strings are no longer chunked on Windows. Function linters should be used instead to customise this behaviour.".Motivation for or Use Case
Want to commit application to Git also in Windows.
Reproduce the error
Generate app in Windows with command
jhipster
and try to commit this to Git.Related issues
Suggest a Fix
Try to implement JS function as described in https://github.com/okonet/lint-staged#using-js-functions-to-customize-linter-commands
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
java version "1.8.0_211" Java(TM) SE Runtime Environment (build 1.8.0_211-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
git version 2.21.0.windows.1
node: v10.15.3
npm: 6.9.0
yeoman: 2.0.6
yarn: 1.15.2
Docker version 19.03.1, build 74b1e89
docker-compose version 1.24.1, build 4667896b
Browsers and Operating System
Windows 10