Skip to content

Commit 3ad0f45

Browse files
committed
Attempt to make the FlakeRef test succeed on macOS
1 parent 1a38e62 commit 3ad0f45

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/libflake-tests/flakeref.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ namespace nix {
88
/* ----------- tests for flake/flakeref.hh --------------------------------------------------*/
99

1010
TEST(parseFlakeRef, path) {
11+
experimentalFeatureSettings.experimentalFeatures.get().insert(Xp::Flakes);
12+
1113
fetchers::Settings fetchSettings;
1214

1315
{

src/libutil/config.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ public:
262262
operator const T &() const { return value; }
263263
operator T &() { return value; }
264264
const T & get() const { return value; }
265+
T & get() { return value; }
265266
template<typename U>
266267
bool operator ==(const U & v2) const { return value == v2; }
267268
template<typename U>

0 commit comments

Comments
 (0)