From 8a3f2602e0b1c83c2040cd7172320829a4dd3d8c Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 10 Feb 2018 15:44:50 +0100 Subject: [PATCH] Fix include_str!() in imag-init Fixed by symlinking the imagrc.toml file to the crate directory of imag-init. --- bin/core/imag-init/imagrc.toml | 1 + bin/core/imag-init/src/main.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 120000 bin/core/imag-init/imagrc.toml diff --git a/bin/core/imag-init/imagrc.toml b/bin/core/imag-init/imagrc.toml new file mode 120000 index 00000000..b71674c1 --- /dev/null +++ b/bin/core/imag-init/imagrc.toml @@ -0,0 +1 @@ +../../../imagrc.toml \ No newline at end of file diff --git a/bin/core/imag-init/src/main.rs b/bin/core/imag-init/src/main.rs index 5c6b3e44..79188534 100644 --- a/bin/core/imag-init/src/main.rs +++ b/bin/core/imag-init/src/main.rs @@ -45,7 +45,8 @@ use std::path::PathBuf; use std::path::Path; use std::process::Command; -const CONFIGURATION_STR : &'static str = include_str!("../../../../imagrc.toml"); +const CONFIGURATION_STR : &'static str = include_str!("../imagrc.toml"); + const GITIGNORE_STR : &'static str = r#" # We ignore the imagrc.toml file by default #