mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 18:32:23 +00:00
CI: pdf-deps expects the new craft-libs pin; Edit Original tests' editor is executable on Linux (#9216)
Fixes main's two red Linux gate legs. - **Leg 5 (`pdf-deps`)**: `xtask/src/pdf_deps.rs` pinned craft-libs `945e849cb`, the revision before #9211, so the check failed once the app moved to `3238a3eca`. It now expects `3238a3eca`; `cargo xtask pdf-deps` passes. - **Leg 1 (`original_editor::tests`)**: the test helper `editor()` called `set_mode` on a copy of the file's permissions and never applied it, so on Linux the stand-in editor had no executable bit and the platform's application check (craft-libs `platform/src/open.rs`, `mode() & 0o111 != 0`) refused it. `native_choice_commits_persists_cancels_and_resets` and `original_editor_async_picker_validates_and_commits_only_on_ok` failed on Linux only; this leg was already red before the re-pin. The helper now writes the mode with `set_permissions`. Checks: `original_editor` tests pass on Windows (6/6; the Linux path is what this PR's CI checks); clippy (`vectorcraft-ui-egui`, `xtask`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
This commit is contained in:
@@ -170,7 +170,7 @@ mod tests {
|
||||
let p = dir.join(if cfg!(windows) { "Editor.exe" } else { "editor" });
|
||||
std::fs::write(&p, b"").unwrap();
|
||||
#[cfg(unix)]
|
||||
std::os::unix::fs::PermissionsExt::set_mode(&mut std::fs::metadata(&p).unwrap().permissions(), 0o755);
|
||||
std::fs::set_permissions(&p, <std::fs::Permissions as std::os::unix::fs::PermissionsExt>::from_mode(0o755)).unwrap();
|
||||
p
|
||||
};
|
||||
path.to_string_lossy().into_owned()
|
||||
|
||||
@@ -5,7 +5,7 @@ use std::process::Command;
|
||||
|
||||
use serde_json::Value;
|
||||
|
||||
const REV: &str = "945e849cbaff313f046121f335019fcde1d48e0c";
|
||||
const REV: &str = "3238a3eca8af59ba13ee04a39f3527979e1dc33d";
|
||||
const PACKAGES: &[(&str, &str, &str)] = &[
|
||||
("craft-pdf", "0.1.0", REV),
|
||||
("krilla", "0.8.2", REV),
|
||||
|
||||
Reference in New Issue
Block a user