Skip to content
Permalink
Browse files
Fix the double-slash in the realisations path
Make sure that we always access the realisations under
`binaryCacheUrl/realisations` and not `binaryCacheUrl//realisations`

Fix #4766
  • Loading branch information
regnat committed May 4, 2021
1 parent ef13c9c commit dadfbce318c53ae0c53121deab6ab7e07c396164
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/libstore/binary-cache-store.hh
  2. +1 −1 src/libstore/local-binary-cache-store.cc
@@ -34,7 +34,7 @@ private:
protected:

// The prefix under which realisation infos will be stored
const std::string realisationsPrefix = "/realisations";
const std::string realisationsPrefix = "realisations";

BinaryCacheStore(const Params & params);

@@ -93,7 +93,7 @@ class LocalBinaryCacheStore : public virtual LocalBinaryCacheStoreConfig, public
void LocalBinaryCacheStore::init()
{
createDirs(binaryCacheDir + "/nar");
createDirs(binaryCacheDir + realisationsPrefix);
createDirs(binaryCacheDir + "/" + realisationsPrefix);
if (writeDebugInfo)
createDirs(binaryCacheDir + "/debuginfo");
BinaryCacheStore::init();

0 comments on commit dadfbce

Please sign in to comment.