calrissian icon indicating copy to clipboard operation
calrissian copied to clipboard

--tmp-outdir-prefix /calrissian/tmp and /calrissian/tmp/ behave differently

Open fabricebrito opened this issue 7 months ago • 0 comments

A trailing slash in the value of the --tmp-outdir-prefix CLI option provide different output results

image: ghcr.io/duke-gcb/calrissian/calrissian:0.16.0
          command: ["calrissian"]
          args:
            - --stdout 
            - /calrissian/results.json
            - --stderr 
            - /calrissian/app.log
            - --max-ram 
            - 4G
            - --max-cores 
            - "8"
            - --tmp-outdir-prefix 
            - /calrissian/tmp 
            - --outdir
            - /calrissian/results
            - --usage-report 
            - /calrissian/usage.json
            - --tool-logs-basepath 
            - /calrissian/logs
            - /app-package/app-package.cwl
            - /inputs/params.yaml

Without the trailing slash:

 "stac_catalog": {
        "location": "file:///calrissian/results/tmpblxy91p7",

With the trailing slash:

{
    "stac_catalog": {
        "location": "file:///calrissian/results/lvm_l4cj",

Using --tmp-outdir-prefix /calrissian/tmp-aaa we get:

{
    "stac_catalog": {
        "location": "file:///calrissian/results/tmp-aaabxuod1w_",

A trailing slash should not change the url "pattern" of a parameter taking a directory

fabricebrito avatar Jul 05 '24 08:07 fabricebrito