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

Ensure that there are no duplicate files across projects. #4301

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

modmuss50
Copy link
Member

Prevents #4300 from happening again, depends on that being merged first.

build.gradle Outdated Show resolved Hide resolved
}

// Attempt to create a single jar with all files from all nested jars, this will fail if there are duplicate files.
tasks.register("checkNoDuplicateFiles", Zip) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be a Copy too, but I guess this saves some disk space since the files aren't even used

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it could be a Sync, However I think Zip is likely best, if I had to guess zip is likely faster than dealing with 1000s of small files. In the end it doesnt really matter.

@modmuss50 modmuss50 added the merge me please Pull requests that are ready to merge label Dec 16, 2024
@modmuss50 modmuss50 merged commit e918aae into FabricMC:1.21.4 Dec 16, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me please Pull requests that are ready to merge small change test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants