-
Notifications
You must be signed in to change notification settings - Fork 13
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
[BUG]: relative path in with
block in YAML is interpreted relative from YAML, but copy operation to junifer jobs directory interprets relative to working directory.
#224
Conversation
TODO: Fix the Line 67 in f203cd8
|
@LeSasse Could you check if this branch works with your project setup as you described? |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #224 +/- ##
=======================================
Coverage 89.80% 89.81%
=======================================
Files 99 99
Lines 4367 4371 +4
Branches 842 842
=======================================
+ Hits 3922 3926 +4
Misses 305 305
Partials 140 140
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
I can likely do it on friday or early next week. |
Sure, take your time. |
@synchon this works in my project folder now. |
Thanks for verifying :) |
33bd7c4
to
f4f45d9
Compare
Is there an existing issue for this?
Current Behavior
I have the following directory structure:
The top level directory here is my working directory. The code in 01_queue.sh is:
I run
01_queue.sh hcp_ya
which performsjunifer queue
with thehcp_ya.yaml
The content of that yaml file is:
Of course, looking at the with block in the yaml, the file paths are relative from the YAML file:
However when I run this I get:
Thinking, that maybe files have to be relative from working directory, I then tried to change this to:
But using that I get:
Expected Behavior
I think it should just work with relative paths, relative from the YAML directory, even if the working directory is another.
Just to be clear I fixed the issue by adjusting the code in
01_queue.sh
to this:With that it works, but I think that is somewhat beside the point. In my understanding the previous version should also work.
Also, of course, this puts the junifer jobs directory under the yamls directory which is not what i want. I could also put absolute paths (and will for now), but I would prefer relative paths.
Steps To Reproduce
I think I gave everything needed above. Junifer wtf is below.
Environment