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

Combining workdir and taskfile to run it out of directory. #1720

Closed
titpetric opened this issue Jul 13, 2024 · 2 comments
Closed

Combining workdir and taskfile to run it out of directory. #1720

titpetric opened this issue Jul 13, 2024 · 2 comments
Labels
state: can't repro Not enough information was given to reproduce the issue described.

Comments

@titpetric
Copy link

I'm not sure if this is a bug or confusion on my part, but using --dir and -t (taskfile from another dir) errors out.

However, this is working as expected:

includes:
  ingest-git-repo:
    taskfile: ingest-git-repo/Taskfile.yml
    dir: ./

How is it that in this case task ingest-git-repo is allowed, and i suppose works to expectations, but this fails:

# task --dir ./ -t ingest-git-repo/Taskfile.yml 
task: You can't set both --dir and --taskfile
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Jul 13, 2024
@pd93
Copy link
Member

pd93 commented Jul 17, 2024

Can you please add the Task version info to the issue as outlined in the issue template. The error message You can't set both --dir and --taskfile was removed in ed3bcf4 some time ago and is no longer in the codebase.

@pd93 pd93 added state: can't repro Not enough information was given to reproduce the issue described. and removed state: needs triage Waiting to be triaged by a maintainer. labels Jul 17, 2024
@titpetric
Copy link
Author

I apologize for the noise, i asumed I was running a quite recent version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: can't repro Not enough information was given to reproduce the issue described.
Projects
None yet
Development

No branches or pull requests

3 participants