mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 17:16:15 +02:00
Merge pull request #9601 from edolstra/lazy-trees-backports
Lazy trees backports
This commit is contained in:
commit
1f93fa2ed2
3 changed files with 3 additions and 6 deletions
|
@ -335,11 +335,6 @@ private:
|
||||||
|
|
||||||
std::map<std::string, std::optional<std::string>> searchPathResolved;
|
std::map<std::string, std::optional<std::string>> searchPathResolved;
|
||||||
|
|
||||||
/**
|
|
||||||
* Cache used by checkSourcePath().
|
|
||||||
*/
|
|
||||||
std::unordered_map<Path, SourcePath> resolvedPaths;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cache used by prim_match().
|
* Cache used by prim_match().
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -130,7 +130,7 @@ struct SourcePath
|
||||||
{ return accessor->getPhysicalPath(path); }
|
{ return accessor->getPhysicalPath(path); }
|
||||||
|
|
||||||
std::string to_string() const
|
std::string to_string() const
|
||||||
{ return path.abs(); }
|
{ return accessor->showPath(path); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Append a `CanonPath` to this path.
|
* Append a `CanonPath` to this path.
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include "nixexpr.hh"
|
#include "nixexpr.hh"
|
||||||
#include "eval.hh"
|
#include "eval.hh"
|
||||||
#include "eval-inline.hh"
|
#include "eval-inline.hh"
|
||||||
|
#include "eval-settings.hh"
|
||||||
#include "store-api.hh"
|
#include "store-api.hh"
|
||||||
|
|
||||||
#include "tests/libstore.hh"
|
#include "tests/libstore.hh"
|
||||||
|
@ -18,6 +19,7 @@ namespace nix {
|
||||||
static void SetUpTestSuite() {
|
static void SetUpTestSuite() {
|
||||||
LibStoreTest::SetUpTestSuite();
|
LibStoreTest::SetUpTestSuite();
|
||||||
initGC();
|
initGC();
|
||||||
|
evalSettings.nixPath = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Reference in a new issue