-
-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"⚠ Some of your tasks use git add
command."
#775
Comments
This is covered in the changelog. Your configuration looks like the following:
From v10 onwards the |
Huh, that was added by |
Good catch. Let me see if there’s something we’ve forgot to update. |
This seems to be an issue in another package, so I suggest you open an issue there. I don’t have any access to that repo. https://github.com/sapegin/mrm-tasks/blob/master/packages/mrm-task-lint-staged/index.js#L81 |
Your docs currently recommend Is it worth updating the docs to make it clear that |
@okonet what do you think? I see there’s some earlier discussion in that github repo. |
I'll update the task since I wrote that. |
nice , solved my problem |
As seen here: lint-staged/lint-staged#775, git add is not needed here any more
* Remove git add from lint-staged As seen here: lint-staged/lint-staged#775, git add is not needed here any more * changed npm installing to ci prod This prevents husky from being installed which is was failing due to not having the .git file in the Docker work dir * Adjust experience test to select voice manually
* Change initial npm install to ci to prevent husky Husky causes containerize to fail from trying to install husky with new base nodejs image * Remove git add from lint-staged See lint-staged/lint-staged#775
I found this issue, when searching for a solution for my error. After updating to Big Sur (MAC), I'm not able to commit my changes to Github pages. I wonder if this issue is also the solution for my error in my console, when committing in git:
|
@aneta-s you issue doesn't seem related to lint-staged:
Try installing |
@iiroj I have finally installed gpg, and tried to push changes to my repo, but it nothing changed. Honestly, if it is not related to lint-staged issue, then where should I look?
|
@aneta-s you have configured git to sign your commits, and it's trying to use I cannot really offer any general git support, unfortunately. |
@iiroj I appreciate your willingness a lot!
|
"lint-staged": {
"src/*.ts": [
"prettier --write",
"eslint --cache --fix",
"git add" // lint-staged 在10以上版本无需增加 git add
]
}, |
Description
I'm getting the message "⚠ Some of your tasks use
git add
command." during linting, but it isn't clear what tasks it's referring to.Steps to reproduce
https://gist.github.com/jakearchibald/c5e18f54ddd9f8bb852e2d2abdbb3884
./node_modules/.bin/lint-staged
Debug Logs
expand to view
Environment
lint-staged
: 10.0.1The text was updated successfully, but these errors were encountered: