1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 15:48:00 +02:00

Add note about this being a temp solution

(cherry picked from commit e27b7e04bf)
This commit is contained in:
John Ericson 2024-02-16 08:45:15 -05:00 committed by github-actions[bot]
parent 0571e6e9b4
commit 02f7025deb

View file

@ -11,6 +11,10 @@
namespace nix { namespace nix {
/**
* Note there is a decent chance this type soon goes away because the problem is solved another way.
* See the discussion in https://github.com/NixOS/nix/pull/9985.
*/
enum class SymlinkResolution { enum class SymlinkResolution {
/** /**
* Resolve symlinks in the ancestors only. * Resolve symlinks in the ancestors only.
@ -120,6 +124,9 @@ struct SourcePath
/** /**
* Resolve any symlinks in this `SourcePath` according to the * Resolve any symlinks in this `SourcePath` according to the
* given resolution mode. * given resolution mode.
*
* @param mode might only be a temporary solution for this.
* See the discussion in https://github.com/NixOS/nix/pull/9985.
*/ */
SourcePath resolveSymlinks( SourcePath resolveSymlinks(
SymlinkResolution mode = SymlinkResolution::Full) const; SymlinkResolution mode = SymlinkResolution::Full) const;