bat/0.24.0-r4: cve remediation#36334
Conversation
|
Gen AI suggestions to solve the build error: • Detected Error: No explicit error message shown in the log, but the build appears to stop after installing dependencies without completing the build process. • Error Category: Build/Configuration • Failure Point: After dependency installation, before cargo build process • Root Cause Analysis: The issue appears to be related to Rust version compatibility. The package is using rust-1.83, but bat 0.24.0 may require a newer version of Rust. • Suggested Fix:
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- cargo-auditable
- libgit2-dev
- openssf-compiler-options
- rust>=1.70.0
- zlib-dev
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- cargo-auditable
- libgit2-dev
- openssf-compiler-options
- rust
- zlib-dev
environment:
RUSTFLAGS: "-C target-feature=+crt-static"• Explanation:
• Additional Notes:
• References:
|
|
Gen AI suggestions to solve the build error: • Detected Error: "solving 'so:libgit2.so.1.8' constraint: libgit2-1.8.0-r0.apk disqualified because libgit2-1.9.0-r0.apk already provides cmd:git2" • Error Category: Dependency • Failure Point: Package dependency resolution during build environment setup • Root Cause Analysis: There's a version mismatch between the installed libgit2 (1.9.0) and the version required by rust (1.8.x). The rust package specifically requires libgit2 1.8.x, but a newer version (1.9.0) is being pulled in. • Suggested Fix:
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- cargo-auditable
- libgit2-dev=1.8.4-r0
- openssf-compiler-options
- rust
- zlib-dev• Explanation: By explicitly pinning libgit2-dev to version 1.8.4-r0, we ensure compatibility with the rust package's requirements. This version satisfies the so:libgit2.so.1.8 dependency while avoiding conflicts with newer versions. • Additional Notes:
• References:
|
bat/0.24.0-r4: fix GHSA-h97m-ww89-6jmq
Advisory data: https://github.com/wolfi-dev/advisories/blob/main/bat.advisories.yaml