[GEODE-10630] The source distribution does not complete ./gradlew build - #8058
Open
JinwooHwang wants to merge 1 commit into
Open
[GEODE-10630] The source distribution does not complete ./gradlew build#8058JinwooHwang wants to merge 1 commit into
JinwooHwang wants to merge 1 commit into
Conversation
JinwooHwang
requested review from
marinov-code and
sboorlagadda
and removed request for
sboorlagadda
September 7, 2026 21:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cause
The
srcdistribution ingeode-assembly/build.gradlepicks up.buildinfotwice:from rootProject.tasks.writeBuildInfo, which places the generated file at the archive root.from (rootDir), which sweeps the whole tree.In a git checkout there is no
$rootDir/.buildinfo, so only the first source contributes and the build passes. An unpacked source distribution already carries.buildinfoat its root, so the second source picks it up as well and Gradle 7 fails on the duplicate entry. The existingbuild/outdirectory exclusion coversbuild/.buildinfobut not the root copy.Fix
Exclude
.buildinfofrom therootDirsweep, leaving thewriteBuildInfooutput as the single authoritative entry. Contents are unchanged, so the source distribution stays reproducible: rebuilding from an unpacked tarball emits the same.buildinfoit shipped with.Testing
With a
.buildinfoplaced at the repo root to reproduce the source-distribution layout:srcDistTarfails with the duplicate-entry error above.BUILD SUCCESSFUL, and the archive contains exactly one.buildinfo, holding the real SCM values rather than the root copy.For all changes, please confirm:
develop)?gradlew buildrun cleanly?