mirror of
https://github.com/go-task/task.git
synced 2026-05-18 05:05:20 +02:00
chore(remote): drop redundant comment on getSpecialVars
The behavior is already documented in experiments/remote-taskfiles.md and validated by the table-driven test.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user