git-xargs not respecting .gitignore
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing the reported command with git-xargs v0.0.11 and a repository containing an ignored node_modules/ directory. Trace how the command stages generated changes and inspect the repository's .gitignore handling; done means ignored files are not added while other intended changes still are.
Written by the indexing model from the issue text.
Description
git-xargs version
What does git-xargs --version show?
git-xargs version v0.0.11
Describe the bug
git-xargs is not respecting .gitignore
To Reproduce
Steps to reproduce the behavior:
#!/usr/bin/env bash
git-xargs \
--commit-message "Update Yarn Berry to latest canary" \
--repos ../repos.txt \
--branch-name chore/update-yarn-berry-canary \
--loglevel debug \
"$(pwd)/update-yarn-berry-canary.sh"
#!/usr/bin/env bash
# update-yarn-berry-canary.sh
yarn set version canary
yarn
That results in files being added to node_modules when, in my .gitignore in those projects, I have node_modules/ listed.
Expected behavior
Respect the .gitignore (in this case, node_modules/)
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
- Dominant language
- Go
- Stars
- 1.1k
- Forks
- 75
- Avg merge
- 22h 5m
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from gruntwork-io/git-xargs
-
Able to change commit message depending on repo?May be free again @ZachGoldberg claimed this 429 days ago, and no pull request is open. Openenhancement
gruntwork-io/git-xargs#175 · 1 assignee ·
-
provide an environment variable with the temp directory namePossibly taken @jeff350 claimed this 1025 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
gruntwork-io/git-xargs#146 · 3 comments · 1 reaction ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 38/100
gruntwork-io/git-xargs#145 · 1 comment ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
gruntwork-io/git-xargs#144 · 4 reactions ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
gruntwork-io/git-xargs#143 ·
All issues in gruntwork-io/git-xargs
Similar issues
-
BasicEventElement `messageBroker` is never returned on read (jsonb decoded into `sql.NullString`)Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
eclipse-basyx/basyx-go-components#963 ·
Maintainers usually reply within 1 day
-
Area/Console Aspect/UI Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
wso2/agent-manager#2743 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day