Closed daywalker90 closed 7 months ago
I was discussing this with @tareknaser I remember also that he provide a patch for it but Idk why this bug is still present
Can you take a look at it @tareknaser ?
I remember also that he provide a patch for it but Idk why this bug is still present
I think you mean #115 but this was for duplicate repositories. I don't recall discussing this issue for plugins.
Ok you are right @tareknaser
This should fix the problem https://github.com/coffee-tools/coffee/pull/250
@tareknaser Can you write a test to make sure that my code works?
I ran into an issue where i had the same plugin listed 3 times under
coffee list
. Since we internally useVec
to store these there is no check for duplicates on aVec.push
. We could switch to something likeHashMap<String, Plugin>
and use thename
as the key or on everyVec.push
we check if a plugin with thatname
already exists to prevent cases like this. I'd be willing to make these changes.Thoughts?