diff --git a/src/libstore/local-fs-store.hh b/src/libstore/local-fs-store.hh index f36cd56af27..a400faec05a 100644 --- a/src/libstore/local-fs-store.hh +++ b/src/libstore/local-fs-store.hh @@ -10,13 +10,13 @@ namespace nix { template class F> struct LocalFSStoreConfigT { - F> rootDir; + const F> rootDir; - F stateDir; + const F stateDir; - F logDir; + const F logDir; - F realStoreDir; + const F realStoreDir; }; struct LocalFSStoreConfig : diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 296b81be6a0..9d114ff40c7 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -99,9 +99,9 @@ typedef std::map> StorePathCAMap; template class F> struct StoreConfigT { - F pathInfoCacheSize; + const F pathInfoCacheSize; - F isTrusted; + const F isTrusted; F priority; diff --git a/src/libstore/store-dir-config.hh b/src/libstore/store-dir-config.hh index 5359c75b043..4f90c5b5fc5 100644 --- a/src/libstore/store-dir-config.hh +++ b/src/libstore/store-dir-config.hh @@ -22,7 +22,7 @@ MakeError(BadStorePathName, BadStorePath); template class F> struct StoreDirConfigT { - F _storeDir; + const F _storeDir; }; struct StoreDirConfig : StoreDirConfigT diff --git a/tests/unit/libstore/local-overlay-store.cc b/tests/unit/libstore/local-overlay-store.cc index 4fe7e607f47..b34ca92375e 100644 --- a/tests/unit/libstore/local-overlay-store.cc +++ b/tests/unit/libstore/local-overlay-store.cc @@ -1,6 +1,9 @@ -#include +// FIXME: Odd failures for templates that are causing the PR to break +// for now with discussion with @Ericson2314 to comment out. +#if 0 +# include -#include "local-overlay-store.hh" +# include "local-overlay-store.hh" namespace nix { @@ -28,3 +31,4 @@ TEST(LocalOverlayStore, constructConfig_rootPath) } } // namespace nix +#endif