actual fast
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 57s
Build-Test-Publish / build (linux/arm64) (push) Successful in 2m23s

This commit is contained in:
2025-09-30 21:14:10 +13:00
parent 1742d20f34
commit e001413844
2 changed files with 12 additions and 7 deletions

View File

@@ -57,7 +57,8 @@
return template_info(
template_name,
mLocalPath.string(),
path
path,
fast
);
}
@@ -207,7 +208,8 @@
return template_info(
template_name,
"Registry: " + mRegistry.name + " (cached)",
template_cache_dir
template_cache_dir,
fast
);
}
@@ -245,7 +247,8 @@
return template_info(
template_name,
"Registry: " + mRegistry.name + " (cached)",
template_cache_dir
template_cache_dir,
fast
);
}
warning << "Failed to get metadata for template: " << template_name << std::endl;
@@ -395,7 +398,8 @@
return template_info(
template_name,
"Registry: " + mRegistry.name,
template_cache_dir
template_cache_dir,
fast
);
}
@@ -703,7 +707,7 @@
return instance;
}
template_info::template_info(const std::string &template_name, const std::string &location_id, const std::filesystem::path &local_template_path) :
template_info::template_info(const std::string &template_name, const std::string &location_id, const std::filesystem::path &local_template_path, bool fast) :
mTemplateName(template_name),
mLocationID(location_id),
mTemplateLocalPath(local_template_path),
@@ -717,6 +721,7 @@
return;
}
if (!fast)
mHash = hash_directory_recursive(local_template_path);
}

View File

@@ -20,7 +20,7 @@ typedef enum template_source_type {
class template_info {
public:
template_info() : mIsSet(false) {}
template_info(const std::string& template_name, const std::string& location_id, const std::filesystem::path& local_template_path);
template_info(const std::string& template_name, const std::string& location_id, const std::filesystem::path& local_template_path, bool fast);
virtual ~template_info() {}
bool is_set() const { return mIsSet; }
std::string name() const { return mTemplateName; }