forked from lix-project/hydra
Fix build
This commit is contained in:
parent
76104accda
commit
e7ce225558
|
@ -773,7 +773,6 @@ void State::run(BuildID buildOne)
|
||||||
_destStore = openLocalBinaryCacheStore(
|
_destStore = openLocalBinaryCacheStore(
|
||||||
_localStore,
|
_localStore,
|
||||||
hydraConfig["binary_cache_secret_key_file"],
|
hydraConfig["binary_cache_secret_key_file"],
|
||||||
hydraConfig["binary_cache_public_key_file"],
|
|
||||||
dir);
|
dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -784,7 +783,6 @@ void State::run(BuildID buildOne)
|
||||||
auto store = make_ref<S3BinaryCacheStore>(
|
auto store = make_ref<S3BinaryCacheStore>(
|
||||||
_localStore,
|
_localStore,
|
||||||
hydraConfig["binary_cache_secret_key_file"],
|
hydraConfig["binary_cache_secret_key_file"],
|
||||||
hydraConfig["binary_cache_public_key_file"],
|
|
||||||
bucketName);
|
bucketName);
|
||||||
store->init();
|
store->init();
|
||||||
_destStore = std::shared_ptr<S3BinaryCacheStore>(store);
|
_destStore = std::shared_ptr<S3BinaryCacheStore>(store);
|
||||||
|
|
|
@ -32,9 +32,8 @@ R && checkAws(const FormatOrString & fs, Aws::Utils::Outcome<R, E> && outcome)
|
||||||
}
|
}
|
||||||
|
|
||||||
S3BinaryCacheStore::S3BinaryCacheStore(std::shared_ptr<Store> localStore,
|
S3BinaryCacheStore::S3BinaryCacheStore(std::shared_ptr<Store> localStore,
|
||||||
const Path & secretKeyFile, const Path & publicKeyFile,
|
const Path & secretKeyFile, const std::string & bucketName)
|
||||||
const std::string & bucketName)
|
: BinaryCacheStore(localStore, secretKeyFile)
|
||||||
: BinaryCacheStore(localStore, secretKeyFile, publicKeyFile)
|
|
||||||
, bucketName(bucketName)
|
, bucketName(bucketName)
|
||||||
, config(makeConfig())
|
, config(makeConfig())
|
||||||
, client(make_ref<Aws::S3::S3Client>(*config))
|
, client(make_ref<Aws::S3::S3Client>(*config))
|
||||||
|
@ -177,4 +176,3 @@ std::string S3BinaryCacheStore::getFile(const std::string & path)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,7 @@ private:
|
||||||
public:
|
public:
|
||||||
|
|
||||||
S3BinaryCacheStore(std::shared_ptr<Store> localStore,
|
S3BinaryCacheStore(std::shared_ptr<Store> localStore,
|
||||||
const Path & secretKeyFile, const Path & publicKeyFile,
|
const Path & secretKeyFile, const std::string & bucketName);
|
||||||
const std::string & bucketName);
|
|
||||||
|
|
||||||
void init() override;
|
void init() override;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue