You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Duplicate entries when adding a contributor twice #62
if I add the same user with the same contributions, shouldn't it just no op?
And then if I add an existing user with a new contribution, shouldn't it just modify that contributor's contributions array? As far as for a CLI, it should be smart about the existing contents of the .all-contributorsrc correct?
@GantMan the project you're pointing at is using version 4.5.3. There were some changes that may have fixed this problem since then. Could you try with the latest version? (4.7.0 released an hour ago)
I also updated the package locally, and it was nope. Does this work on your machine? Are you using 4.7 from npm or a npm link version? I'm stuck on how I can figure it out :(
Are you sure that your global version of all-contributors is the latest version? I suggest you uninstall it globally and just use the local installation. ./node_modules/.bin/all-contributors should do it, or you might use npx, yarn, or this method to run binaries of locally install packages.
🤖 Beep boop! This comment was added automatically by all-contributors-auto-action.
Not all contributions can be detected from Git & GitHub alone. Please comment any missing contribution types this bot missed.
...and of course, thank you for contributing! 💙
Activity
kentcdodds commentedon Nov 8, 2017
If I'm not mistaken, that's what it does. If it doesn't do that already, then that's a bug.
GantMan commentedon Nov 8, 2017
Mark as bug v4.7.0

[-]Shouldn't the CLI be idempotent?[/-][+]Duplicate entries when adding a contributor twice[/+]machour commentedon Nov 8, 2017
@GantMan tried with 4.7.0, I can't reproduce what you're describing:
Can you provide the same test as me, adding a new user?
GantMan commentedon Nov 8, 2017
Yup! Fortunately, the whole thing is open source.
I created a ticket to add
all-contributors-clihere: infinitered/solidarity#114It was provided in a PR here: infinitered/solidarity#119
Investigating his PR, I tested it out and found the issue. All the code is available here: https://github.com/mattathompson/solidarity/tree/all-contributors
You can pull his branch and reproduce.
One thing worth noting, is that the changes are not meant for the readme.md, they are stored in a separate MD. This might be the difference.
Also 🎉 on the fast responses to this ticket! 👏
machour commentedon Nov 8, 2017
@GantMan the project you're pointing at is using version 4.5.3. There were some changes that may have fixed this problem since then. Could you try with the latest version? (4.7.0 released an hour ago)
And thank you 😊 🎉
GantMan commentedon Nov 8, 2017
@machour - my global is 4.7.0, I just checked.
I also, started a fresh branch on master and tried it out: ❌

machour commentedon Nov 8, 2017
which all-contributorsfrom~/Documents/Projects/playground/solidarity/please.I think that you are using the local (outdated) package here.
GantMan commentedon Nov 8, 2017
I also updated the package locally, and it was nope. Does this work on your machine? Are you using 4.7 from npm or a
npm linkversion? I'm stuck on how I can figure it out :(kentcdodds commentedon Nov 8, 2017
Hmmm... We don't recommend installing this globally. And sadly we don't currently support a
--versionflag 😅machour commentedon Nov 8, 2017
@GantMan I'm using 4.7.0 from npm on
gitpoint/git-point, as well as./cli.jsdirectly in this repository. Both work just fine.As Kent mentioned, I think it would be better to get rid of your global package.
Then you may need to add some
console.log()commands around here in your local package:https://github.com/jfmengels/all-contributors-cli/blob/master/lib/contributors/add.js#L44
to understand what's going on.
Let us know what you find out 🕵️
kentcdodds commentedon Nov 8, 2017
Are you sure that your global version of
all-contributorsis the latest version? I suggest you uninstall it globally and just use the local installation../node_modules/.bin/all-contributorsshould do it, or you might usenpx,yarn, or this method to run binaries of locally install packages.GantMan commentedon Nov 8, 2017
Verified version 4.7 (also removed global)


Page 2
Machine specs:


No global
GantMan commentedon Nov 8, 2017
I broke the code open and found the bug. PR coming soon hopefully.
fix: make find/add case insensitive (#64)
github-actions commentedon Nov 25, 2026
@all-contributors please add gantman for bug.
allcontributors commentedon Nov 25, 2026
@github-actions[bot]
I've put up a pull request to add @GantMan! 🎉
docs: add gantman as a contributor for bug (#712)