mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-09-19 11:09:05 +01:00
Add bits to send oid version information to cache build service
This commit is contained in:
parent
ece1e579ac
commit
f6906b4f36
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user