Skip to content
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

There are duplicate entries for the same mod but from different sources #329

Closed
1 task done
T3sT3ro opened this issue May 24, 2023 · 3 comments
Closed
1 task done
Labels
bug Something doesn't work as expected

Comments

@T3sT3ro
Copy link

T3sT3ro commented May 24, 2023

Description

I have some mods which include Roughly Enough Items as their required dependency. The problem is, that one mod is referenced from the modrinth site and the other from the curseforge. Removing one of the REI mods adds it to the dependency list once again and prints

Warning: 1 duplicate files were found RoughlyEnoughItems-9.1.595.jar. Remove the mod it belongs to

I am afraid that this doesn't have a simple fix, until unless the #140 compare-by-hash is not implemented

Steps to reproduce

Have two mods depend on REI. One from curseforge, one from modrinth.

There is no dependency graph, so it's rather hard to see which two mods depend on REI. If need arises, I can try to bruteforce it.

Operating System

Linux

Are you using the latest version of ferium?

  • I am using the latest version of ferium

Additional Information

No response

@T3sT3ro T3sT3ro added the bug Something doesn't work as expected label May 24, 2023
@theRookieCoder
Copy link
Collaborator

unless the #140 compare-by-hash is implemented

#140 won't help with adding the same mod from different sources.

Removing one of the REI mods adds it to the dependency list

This should fix the issue, I guess you didn't use the remove command correctly?

@theRookieCoder theRookieCoder closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2023
@T3sT3ro
Copy link
Author

T3sT3ro commented May 25, 2023

#140 won't help with adding the same mod from different sources.

If two different mods were compared on hashes after their download, then those two mods could be unified into or one could be marked as a primary version of the other in the profile. Something like selecting appropriate package on linux from different PPAs. This would possibly require keeping some index of files local to ferium like apt does.

This should fix the issue, I guess you didn't use the remove command correctly?

I've checked history and indeed, turns out instead of removing Roughly Enough Items (duplicate) I removed Roughly Enough Resources. I've tested right now removing the duplicate mod by ID and it indeed works as intended.

@ok-coder1
Copy link

ok-coder1 commented Oct 19, 2024

#140 won't help with adding the same mod from different sources.

How do you mean this? You could after every ferium upgrade check if files with the same filename is present, if not then also check if files with the same hash is present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something doesn't work as expected
Development

No branches or pull requests

3 participants