-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
expanding of home dir (~) is not working #74
Comments
Your first example is correct, the second task should wait for the first one to complete. Hard to say with the given information why the second didn't run. Maybe the first error or hang? I'm closing this since questions are supposed to be asked in the chat room. |
In my original description I stated first task run, it just takes time for 1st task to finish. 2nd task never waited long enough. I assume you are running go routines with short timeout? I was trying to migrate from fabric to task, no issues to run the same command via fabric task. |
@i4o Can you please give more information?
Just to make it clear: the below will run serially: default:
cmds:
- task: gen
- task: upload The below concurrently, so it's not what you want in this case: default:
deps: [gen, upload]
There's no timeout for running commands. It returns when the command finishes or error.
I don't know what Fabric is. Can you link it and (if relevant) paste configuration?
Stdout and stderr of commands are redirected while running it. Did you try to run these commands directly on console? |
I guess I found out how to make it run. My shell is fish[1]. When I switched to bash and run [1] ... https://fishshell.com/ Regarding version, I did
I'm running Ubuntu 16.04.3 LTS $ uname -a
Ofcourse I did. What's important, when i1st task finishes it creates Error I was seeing is non-existent But now I'm trying to run single task [hugo] ... gohugo.io ( static site generator in golang ) |
@i4o Did you find to solve the issue? I think there's a chance that the dir ( |
You are correct. I was running task from I tried then to move Thank you for your help. |
Expanding of home dir has being fixed at master: baac067 |
Simple task like hugo should generate site. It clearly takes bit longer in my case and 2nd following task cannot sync, as directory ~/myblog/site is not yet created.
Is there a way for 2nd task to wait for 1st task to finish?
But maybe there is issue with longer running tasks, as alone
task gen
doesn't seen to work properly, it never finishes.Taskfile.yml
gen:
desc: hugo generate site
dir: ~/myblog
cmds:
- hugo
upload:
desc: rsync to server
cmds:
- rsync -avz --delete ~/myblog/site/* blog.xxx.net:/srv/blog.xxx.net/
default:
cmds:
- task: gen
- task: upload
i tried this first, didn't work either
default:
deps: [gen, upload]
The text was updated successfully, but these errors were encountered: