Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task --slient --list-all with remote taskfiles causes panic #1509

Closed
wburningham opened this issue Feb 15, 2024 · 1 comment · Fixed by #1512
Closed

task --slient --list-all with remote taskfiles causes panic #1509

wburningham opened this issue Feb 15, 2024 · 1 comment · Fixed by #1512
Labels
area: remote Changes related to remote taskfiles.

Comments

@wburningham
Copy link

A simple repro case:

# Taskfile.yml
version: "3"

includes:
  scary: https://raw.githubusercontent.com/go-task/task/main/docs/Taskfile.yml

Pull the latest version of task:

$ mkdir task3.34.1
$ curl -Ls https://github.com/go-task/task/releases/download/v3.34.1/task_darwin_arm64.tar.gz | tar -xvzf - -C task3.34.1

Run the following

$ ./task3.33.1/task --silent --list-all
# OR
$ ./task3.33.1/task --yes --list-all
$ ./task3.33.1/task --silent --list-all

See the error

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=...]
...

This may be causing issues for #1406 since the bash auto complete uses --silent --list-all

Task version: 3.34.1
Operating system: macOS 14.2
Experiments enabled: TASK_X_REMOTE_TASKFILES=1

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Feb 15, 2024
@pd93 pd93 added type: bug Something not working as intended. area: remote Changes related to remote taskfiles. and removed state: needs triage Waiting to be triaged by a maintainer. labels Feb 16, 2024
@pd93
Copy link
Member

pd93 commented Feb 19, 2024

Thanks for reporting @wburningham. Fix in #1512.

@pd93 pd93 mentioned this issue Feb 27, 2024
@pd93 pd93 removed the type: bug Something not working as intended. label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: remote Changes related to remote taskfiles.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants