* Handle multiple indirect symlinks when loading a Nix expression.
This commit is contained in:
		
							parent
							
								
									e4b0666f8e
								
							
						
					
					
						commit
						71ceb1c161
					
				
					 3 changed files with 22 additions and 7 deletions
				
			
		|  | @ -1113,10 +1113,7 @@ static void opDefaultExpr(Globals & globals, | |||
|     if (opArgs.size() != 1) | ||||
|         throw UsageError(format("exactly one argument expected")); | ||||
| 
 | ||||
|     Path defNixExpr = absPath(opArgs.front()); | ||||
|     Path defNixExprLink = getDefNixExprPath(); | ||||
|      | ||||
|     switchLink(defNixExprLink, defNixExpr); | ||||
|     switchLink(getDefNixExprPath(), absPath(opArgs.front())); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue