Skip to content

Unable to nest includes when using ssh+git protocol #2437

@twelvelabs

Description

@twelvelabs

Description

Repo steps:

Try to list out the tasks:

TASK_X_REMOTE_TASKFILES=1 task --list --verbose --taskfile [email protected]:b703b1d39811a14dd405d33b023075dd.git//Taskfile.yml
checking cache for "ssh://[email protected]/b703b1d39811a14dd405d33b023075dd.git//Taskfile.yml" in ".task/remote/git.gist.github.com.Taskfile.yml.a63a8af6fbeb2e855727b010c68f11213d87b1405a2c7cba3898e974d7cc3925.yaml"
cache expired at 2025-09-22T06:23:02Z
downloading remote file: ssh://[email protected]/b703b1d39811a14dd405d33b023075dd.git//Taskfile.yml
found remote file at "ssh://[email protected]/b703b1d39811a14dd405d33b023075dd.git//Taskfile.yml"
caching "ssh://[email protected]/b703b1d39811a14dd405d33b023075dd.git//Taskfile.yml" to ".task/remote/git.gist.github.com.Taskfile.yml.a63a8af6fbeb2e855727b010c68f11213d87b1405a2c7cba3898e974d7cc3925.yaml"
checking cache for "ssh://[email protected]/b703b1d39811a14dd405d33b023075dd.git//[email protected]:84af5ee983564bb42f1cc327a54e3139.git/Taskfile.yml" in ".task/remote/[email protected]:84af5ee983564bb42f1cc327a54e3139.git.Taskfile.yml.98e064eb9cd820ed9758fbdba39532701f95ab2638d4d89bdcfb49a9b33f1ba1.yaml"
no cache found
downloading remote file: ssh://[email protected]/b703b1d39811a14dd405d33b023075dd.git//[email protected]:84af5ee983564bb42f1cc327a54e3139.git/Taskfile.yml
file does not exist

Note the last URL is mangled. I've isolated the issue and will be submitting an MR.

Version

3.45.4

Operating system

macOS 15.6.1

Experiments Enabled

Remote Taskfiles

Example Taskfile

version: "3"

includes:
  # https://gist.github.com/twelvelabs/b703b1d39811a14dd405d33b023075dd
  app: [email protected]:84af5ee983564bb42f1cc327a54e3139.git//Taskfile.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: remoteChanges related to remote taskfiles.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions