Reference to static files using windows path on strings fail, for instance "C:\Desktop\myfile.json"
Descripiton
Using a reference to a static file with full windows path, like below in workflow.yaml definition will cause a file not found error.
apiVersion: "ryax.tech/v1alpha5"
kind: Workflows
spec:
human_name: Approximate Pi and publish result to GCS
description: >
Approximate Pi using Monte Carlo approach and push graphs to Google Cloud Storage.
functions:
- id: one-run
from: one-run
version: "1.0"
position:
x: 0
y: 0
inputs_values: {}
streams_to: ["approx-pi"]
- id: gcs-reader
from: gcs-reader
version: "1.0"
position:
x: 3
y: 3
inputs_values:
gcs_sto_creds: "C:\Desktop\ryax-staging-1-d00057905c57.json"
gcs_sto_bucket: "ryax-training-1"
file: "pedro/df.csv"
Double escaping the backslash does not help, it seems like the backslash is escaped twice. Removing the quotes does not worked on my tests either.
Workaround
Copy the file where the cli is being called from and and use the name of the file without the full path.
Edited by Pedro Velho