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 19:13:56 +01:00
commit 82b627623f

View file

@ -31,6 +31,8 @@ import :Command;
namespace fs = std::filesystem; namespace fs = std::filesystem;
std::unordered_set<std::string> checkedDeps;
namespace Crafter { namespace Crafter {
Configuration::Configuration(std::string&& name) : name(std::move(name)) { Configuration::Configuration(std::string&& name) : name(std::move(name)) {
@ -297,7 +299,8 @@ namespace Crafter {
// Execute the clone command // Execute the clone command
system(cloneCommand.c_str()); system(cloneCommand.c_str());
} else if (!it.contains("commit")) { } else if (!it.contains("commit") && !checkedDeps.contains((cacheDir/depFolder).string())) {
checkedDeps.insert((cacheDir/depFolder).string());
system(std::format("cd {} && git pull", (cacheDir/depFolder).string()).c_str()); system(std::format("cd {} && git pull", (cacheDir/depFolder).string()).c_str());
} }