Skip to content

Commit

Permalink
Merge pull request #12525 from DeterminateSystems/move-mounted-source…
Browse files Browse the repository at this point in the history
…-accessor

MountedSourceAccessor: Move to libutil
  • Loading branch information
edolstra authored Feb 19, 2025
2 parents f201446 + d7f2c1b commit 2b3fed4
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/libfetchers/git.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "pathlocks.hh"
#include "processes.hh"
#include "git.hh"
#include "mounted-source-accessor.hh"
#include "git-utils.hh"
#include "logging.hh"
#include "finally.hh"
Expand Down
2 changes: 0 additions & 2 deletions src/libfetchers/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ sources = files(
'github.cc',
'indirect.cc',
'mercurial.cc',
'mounted-source-accessor.cc',
'path.cc',
'registry.cc',
'store-path-accessor.cc',
Expand All @@ -72,7 +71,6 @@ headers = files(
'filtering-source-accessor.hh',
'git-lfs-fetch.hh',
'git-utils.hh',
'mounted-source-accessor.hh',
'registry.hh',
'store-path-accessor.hh',
'tarball.hh',
Expand Down
9 changes: 0 additions & 9 deletions src/libfetchers/mounted-source-accessor.hh

This file was deleted.

1 change: 1 addition & 0 deletions src/libutil/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ sources = files(
'json-utils.cc',
'logging.cc',
'memory-source-accessor.cc',
'mounted-source-accessor.cc',
'position.cc',
'posix-source-accessor.cc',
'references.cc',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "mounted-source-accessor.hh"
#include "source-accessor.hh"

namespace nix {

Expand Down
2 changes: 2 additions & 0 deletions src/libutil/source-accessor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,6 @@ ref<SourceAccessor> getFSSourceAccessor();
*/
ref<SourceAccessor> makeFSSourceAccessor(std::filesystem::path root);

ref<SourceAccessor> makeMountedSourceAccessor(std::map<CanonPath, ref<SourceAccessor>> mounts);

}

0 comments on commit 2b3fed4

Please sign in to comment.