Adding VersionStream for apache-tika-3.2#57268
Conversation
🔄 Build Failed: Git Checkout Error
Build Details
Root Cause Analysis 🔍The build is attempting to clone Apache Tika repository with branch '3.2', but this is actually a tag, not a branch. The git clone command is incorrectly using --branch=3.2 when it should be using a tag reference instead. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Similar PRs with fixesSuggested ChangesFile: apache-tika-3.2.yaml
Replacement: Click to expand fix analysisAnalysisThe similar fixed build failure shows a pattern where Git's branch specification was incorrectly used with what was actually a tag reference. In the example fix, the build was trying to use '--branch=v2.32.0' when v2.32.0 was a tag, not a branch. The key insight is that when working with Git repositories where specific versions are tagged rather than branched, the configuration needs to properly specify tag references instead of branch references. Click to expand fix explanationExplanationThe current build failure occurs because the Git checkout step is trying to use version '3.2' as a branch, but it's actually a tag in the Apache Tika repository. The error message "fatal: Remote branch 3.2 not found in upstream origin" clearly indicates this confusion. In the Melange build system, when using the 'git-checkout' action with a tag, we need to specify both:
The suggested fix adds the 'branch: main' parameter to ensure that Git first clones a valid branch before checking out the tag. This approach is correct because:
The Git operation will first clone the main branch and then checkout the specified tag, which is the intended behavior for building a specific version from a tag. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
|
https://downloads.apache.org/tika/3.2.0/CHANGES-3.2.0.txt seems GitHub doesn't have tags probably switch to one of the sources |
8769e8d to
8bf9953
Compare
d6122cb to
7930967
Compare
Upstream haven't tagged a `3.2.0` release in their git repo, so this moves us to using their release tarballs. I also updated https://release-monitoring.org/project/15703/ in the same way, so we can switch to using that as our update backend.
Upstream have moved `cxf.version` to 4.0.6, and the jetty-http bump doesn't actually change the version used (it would need to apply to `tika-parent/pom.xml`, but that causes compilation errors).
7930967 to
28b10ef
Compare
|
This CVE isn't remediable, bumping the affected version causes compilation errors. It's already advisoried for previous releases. |
No description provided.