1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

Attempt to make the FlakeRef test succeed on macOS

This commit is contained in:
Eelco Dolstra 2025-01-09 16:42:37 +01:00
parent 1a38e62a09
commit 3ad0f45e79
2 changed files with 3 additions and 0 deletions

View file

@ -8,6 +8,8 @@ namespace nix {
/* ----------- tests for flake/flakeref.hh --------------------------------------------------*/ /* ----------- tests for flake/flakeref.hh --------------------------------------------------*/
TEST(parseFlakeRef, path) { TEST(parseFlakeRef, path) {
experimentalFeatureSettings.experimentalFeatures.get().insert(Xp::Flakes);
fetchers::Settings fetchSettings; fetchers::Settings fetchSettings;
{ {

View file

@ -262,6 +262,7 @@ public:
operator const T &() const { return value; } operator const T &() const { return value; }
operator T &() { return value; } operator T &() { return value; }
const T & get() const { return value; } const T & get() const { return value; }
T & get() { return value; }
template<typename U> template<typename U>
bool operator ==(const U & v2) const { return value == v2; } bool operator ==(const U & v2) const { return value == v2; }
template<typename U> template<typename U>