Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into new-store-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Jul 18, 2024
2 parents 9052c09 + 606ace4 commit 118b050
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/libstore/local-fs-store.hh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ namespace nix {
template<template<typename> class F>
struct LocalFSStoreConfigT
{
F<std::optional<Path>> rootDir;
const F<std::optional<Path>> rootDir;

F<Path> stateDir;
const F<Path> stateDir;

F<Path> logDir;
const F<Path> logDir;

F<Path> realStoreDir;
const F<Path> realStoreDir;
};

struct LocalFSStoreConfig :
Expand Down
4 changes: 2 additions & 2 deletions src/libstore/store-api.hh
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ typedef std::map<StorePath, std::optional<ContentAddress>> StorePathCAMap;
template<template<typename> class F>
struct StoreConfigT
{
F<int> pathInfoCacheSize;
const F<int> pathInfoCacheSize;

F<bool> isTrusted;
const F<bool> isTrusted;

F<int> priority;

Expand Down
2 changes: 1 addition & 1 deletion src/libstore/store-dir-config.hh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MakeError(BadStorePathName, BadStorePath);
template<template<typename> class F>
struct StoreDirConfigT
{
F<Path> _storeDir;
const F<Path> _storeDir;
};

struct StoreDirConfig : StoreDirConfigT<config::JustValue>
Expand Down
8 changes: 6 additions & 2 deletions tests/unit/libstore/local-overlay-store.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#include <gtest/gtest.h>
// FIXME: Odd failures for templates that are causing the PR to break
// for now with discussion with @Ericson2314 to comment out.
#if 0
# include <gtest/gtest.h>

#include "local-overlay-store.hh"
# include "local-overlay-store.hh"

namespace nix {

Expand Down Expand Up @@ -28,3 +31,4 @@ TEST(LocalOverlayStore, constructConfig_rootPath)
}

} // namespace nix
#endif

0 comments on commit 118b050

Please sign in to comment.