-
-
Notifications
You must be signed in to change notification settings - Fork 624
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
Intermittent failure to find taskfile in subdirectory #1964
Comments
If you replace the nomad command with something else (echo "foo"), I guess you don't see the problem anymore. Right? |
This may also be a factor, especially in your second case: Line 131 in f331726
|
Hey @trulede thanks for responding
Looks like this might actually be the case, I did a I am unsure why the directory was setup like that, and what was changing the permissions, but at least I have a workaround for now. My guess is this is something related to devcontainers more than the commands I was running. I will close this issue for now, but if it happens again I will post updates on what I find in case there is a fix to be made. Thanks!! |
Description
Hi all,
Seeing some strange behavior with my taskfiles intermittently not being discovered. I am not sure if this is an environment issue or something related to the way I have configured by directories, and
-v
does not give any useful debugging information.Occasionally, I will get stuck in a state where any task run in a directory that previously ran tasks fine just stops working. I have noticed this happening in times where there is no taskfile in the directory, but there is one in a root directory that is not being found. Here is some terminal output showing that:
The first line everything works fine, I made no changes to the task files and when rerunning the same command, taskfiles are not found. After a while though, it will work again.
This is running in an Ubuntu 24.04 based VS Code devcontainer on a Mac OS device, I am not sure if that is related.
The structure of my taskfiles is the following, also not sure if its related:
The file
nomad.yml
contains theup
task I am calling in the example above. It is included in the root Taskfile.yml as such:And just in case it matters (I don't think it does because I have seen other similar subdirectory issues outside of this example):
Looking at where this error is thrown I am not seeing where there might be an intermittent issue, but I am hoping you all can help me debug this!
Maybe simpler repro
Simple example of how a parent directory task is not being called read when in this state:
Thanks!
Version
3.40.1
Operating system
Ubuntu 24.04
Experiments Enabled
No response
Example Taskfile
The text was updated successfully, but these errors were encountered: