Closed vnktsh closed 3 years ago
Hello, @vnktsh
Digdag isolates the working directory intentionally.
So, basically, you can't change a directory except for some operators (ie.sh>
).
Ref: #785
@hiroyuki-sato Thank you Hiro for the clarification. I have made workaround by doing cd ${workspace}
for every sh>:
operator.
Example:
_export:
workdir: "/home/ubuntu/project/"
+run:
+update-git:
sh>: cd ${workdir} && git checkout master && git pull origin master
+task:
sh>: cd ${workdir} && python parser.py
Hello right now, the default working directory is at
/tmp/digdag-tempdirxxx/workspace/
.Is there an easy and quick way to change this?
Setting
_workdir: <work-path>
gives me model validation error