You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Optional remote includes fail in offline mode when not cached #3076
Task does not respect the optional: true property for remote Taskfile includes when running in --offline mode and the remote Taskfile is not available in the local cache.
Instead of skipping the optional include, Task fails while resolving it, even when the requested task is defined locally and does not depend on any remote tasks.
Run the local task with offline mode enabled, using an empty cache:
task --offline --remote-cache-dir "$(mktemp -d)" local
Actual behavior
Task fails before executing the local task:
task: Taskfile "https://github.com/go-task/task.git//Taskfile.yml" was not found in the cache. Remove the --offline flag to use a remote copy or download it using the --download flag
Expected behavior
Task should skip the optional remote include when it is not available in the cache and continue executing the local task.
Expected output:
task: [local] echo "Hello from local"
Hello from local
Activity