windows build fix
Some checks failed
demo.yaml / windows build fix (push) Failing after 0s

This commit is contained in:
Jorijn van der Graaf 2026-03-01 18:29:27 +01:00
commit 30b3be2feb
2 changed files with 5 additions and 0 deletions

View file

@ -109,6 +109,7 @@ namespace Crafter {
throw std::runtime_error("Failed to get executable path"); throw std::runtime_error("Failed to get executable path");
} }
path[length] = '\0'; path[length] = '\0';
std::cout << path << std::endl;
return fs::path(path).parent_path().parent_path(); return fs::path(path).parent_path().parent_path();
} }

View file

@ -280,6 +280,8 @@ namespace Crafter {
const fs::path cacheDir = GetPath() / "cloneCache"; const fs::path cacheDir = GetPath() / "cloneCache";
std::cout << cacheDir << std::endl;
if (!fs::exists(cacheDir)) { if (!fs::exists(cacheDir)) {
fs::create_directories(cacheDir); fs::create_directories(cacheDir);
} }
@ -303,6 +305,8 @@ namespace Crafter {
path = cacheDir / depFolder / "project.json"; path = cacheDir / depFolder / "project.json";
} }
std::cout << path << std::endl;
// Create a Project object for the dependency // Create a Project object for the dependency
std::unique_ptr<Project> depProject = std::make_unique<Project>(std::move(path), configName); std::unique_ptr<Project> depProject = std::make_unique<Project>(std::move(path), configName);