Add bits to send oid version information to cache build service

This commit is contained in:
Jay Kamat 2023-01-16 06:41:58 -08:00 committed by Jay Kamat
parent ece1e579ac
commit f6906b4f36

View File

@ -26,6 +26,7 @@
#include "Serialize.h"
#ifndef OSS_ENABLE
#include "cea/object-introspection/internal/GobsService.h"
#include "cea/object-introspection/internal/ManifoldCache.h"
#endif
@ -241,6 +242,10 @@ std::string OICache::generateRemoteHash(const irequest &req) {
std::string remote_cache_id = *buildID + "/" + req.func + "/" + req.arg +
"/" + generatorConfig.toString();
#ifndef OSS_ENABLE
auto version_pair = ObjectIntrospection::GobsService::getOidRpmVersions();
remote_cache_id += "/" + version_pair.first + "/" + version_pair.second;
#endif
LOG(INFO) << "generating remote hash from: " << remote_cache_id;
return std::to_string(std::hash<std::string>{}(remote_cache_id));