Skip to content

Commit 457f1c3

Browse files
committed
ci: move fix to dockerfile
1 parent 922b55b commit 457f1c3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ ARG CACHEBUST
2424

2525
# Install MSFS2020 and MSFS2024 SDK
2626
RUN cargo-msfs install msfs2020 && \
27-
cargo-msfs install msfs2024
27+
cargo-msfs install msfs2024
28+
29+
RUN git config --global --add safe.directory /workspace

scripts/cargo-msfs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ await Promise.all(
110110
-w /workspace${relativeWorkdDir} \
111111
-e CARGO_TARGET_DIR=/workspace/targets/${simVersion} \
112112
${IMAGE_NAME} \
113-
bash -c "git config --global --add safe.directory /workspace && cargo-msfs build msfs${simVersion} -i ./src/wasm -o ./${relativeSimDir}/msfs_navigation_data_interface.wasm \
113+
bash -c "cargo-msfs build msfs${simVersion} -i ./src/wasm -o ./${relativeSimDir}/msfs_navigation_data_interface.wasm \
114114
1> >(sed \"s/^/[${color}${simVersion}\\x1b[0m]/\") \
115115
2> >(sed \"s/^/[${color}${simVersion}\\x1b[0m]/\" >&2)"`.catch((err: { exitCode?: number; stderr?: Buffer }) => {
116116
console.error(`[-] Error building for ${simVersion}: ${err.exitCode} ${err.stderr?.toString()}`);

0 commit comments

Comments
 (0)