Fix CI/CD patch application and interactive prompt issues
Some checks failed
Build Packages / Build libostree Backport (push) Successful in 10m11s
Test Build / Test bootc Build (with existing libostree) (push) Failing after 1m7s
Build Packages / Build bootc Package (push) Failing after 1m13s
Build Packages / Create Combined Artifacts (push) Has been skipped

- Update patch file to use correct path: lib/src/cli.rs instead of crates/lib/src/cli.rs
- Simplify patch application to use patch -p1 with correct strip level
- Fix debug step to check correct directory structure
- Add -y flag to all apt update commands to prevent interactive prompts
- Ensure all apt commands use non-interactive mode with proper environment variables

This resolves the "can't find file to patch" error and prevents
interactive prompts that were causing CI/CD failures.
This commit is contained in:
robojerk 2025-07-21 01:40:25 +00:00
parent 28955d63c9
commit 6bc8f501a9
2 changed files with 10 additions and 20 deletions

View file

@ -8,13 +8,13 @@ in the current ostree Rust bindings version, allowing bootc to build
and run successfully with libostree 2025.2-1 backported to Ubuntu Noble.
---
crates/lib/src/cli.rs | 3 ++-
lib/src/cli.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/crates/lib/src/cli.rs b/crates/lib/src/cli.rs
diff --git a/lib/src/cli.rs b/lib/src/cli.rs
index abc1234..def5678 100644
--- a/crates/lib/src/cli.rs
+++ b/crates/lib/src/cli.rs
--- a/lib/src/cli.rs
+++ b/lib/src/cli.rs
@@ -1029,7 +1029,8 @@ pub fn global_init() -> Result<()> {
eprintln!("failed to set name: {e}");
}