From b4b1dfef650c0fce6cf50746c30031967331d6f8 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Tue, 23 Apr 2024 21:34:55 -0300 Subject: [PATCH] cli/new: use relative path for stdlib submodule --- compiler-cli/src/new.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler-cli/src/new.rs b/compiler-cli/src/new.rs index 998dfe356..989f83ad0 100644 --- a/compiler-cli/src/new.rs +++ b/compiler-cli/src/new.rs @@ -484,7 +484,8 @@ impl Creator { let workflows = github.join("workflows"); // External folder: we will clone stdlib there if possible. let external = root.join("external"); - let external_stdlib = external.join("stdlib"); + // Use a relative path as that is what is recorded to '.gitmodules'. + let external_stdlib = Utf8PathBuf::from("external/stdlib"); let me = Self { root: root.clone(), src,