From 58340492cb5647efe3cbcff8627287ece84c9b65 Mon Sep 17 00:00:00 2001 From: Valentin Maerten Date: Sun, 17 May 2026 18:02:32 +0200 Subject: [PATCH] chore(remote): drop redundant comment on getSpecialVars The behavior is already documented in experiments/remote-taskfiles.md and validated by the table-driven test. --- compiler.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/compiler.go b/compiler.go index 139eeab1..14b00e3e 100644 --- a/compiler.go +++ b/compiler.go @@ -202,11 +202,6 @@ func (c *Compiler) getSpecialVars(t *ast.Task, call *Call) (map[string]string, e // Use filepath.ToSlash for all paths to ensure consistent forward slashes // across platforms. This prevents issues with backslashes being interpreted // as escape sequences when paths are used in shell commands on Windows. - // - // For remote Taskfiles (HTTP/HTTPS/Git), the *_DIR variables are - // intentionally empty because no local directory corresponds to the file; - // TASKFILE/ROOT_TASKFILE hold the raw URL, and TASK_DIR is resolved - // relative to USER_WORKING_DIR. See issue #2267. var rootTaskfile, rootDir string if taskfile.IsRemoteEntrypoint(c.Entrypoint) { rootTaskfile = c.Entrypoint