Skip to content

Commit

Permalink
Force noLinkCheck=true when loading input file
Browse files Browse the repository at this point in the history
  • Loading branch information
GlassOfWhiskey committed Oct 20, 2023
1 parent 338e540 commit 294dd35
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cwl_utils/parser/cwl_v1_0_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ def load_inputfile(
baseuri = cwl.file_uri(os.getcwd()) + "/"
if loadingOptions is None:
loadingOptions = cwl.LoadingOptions()
loadingOptions = cwl.LoadingOptions(copyfrom=loadingOptions, no_link_check=True)
result, metadata = _inputfile_load(
doc,
baseuri,
Expand All @@ -343,6 +344,7 @@ def load_inputfile_by_string(
if loadingOptions is None:
loadingOptions = cwl.LoadingOptions(fileuri=uri)

loadingOptions = cwl.LoadingOptions(copyfrom=loadingOptions, no_link_check=True)
result, metadata = _inputfile_load(
result,
uri,
Expand All @@ -362,6 +364,7 @@ def load_inputfile_by_yaml(
if loadingOptions is None:
loadingOptions = cwl.LoadingOptions(fileuri=uri)

loadingOptions = cwl.LoadingOptions(copyfrom=loadingOptions, no_link_check=True)
result, metadata = _inputfile_load(
yaml,
uri,
Expand Down
4 changes: 4 additions & 0 deletions cwl_utils/parser/cwl_v1_1_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ def load_inputfile(
baseuri = cwl.file_uri(os.getcwd()) + "/"
if loadingOptions is None:
loadingOptions = cwl.LoadingOptions()

loadingOptions = cwl.LoadingOptions(copyfrom=loadingOptions, no_link_check=True)
result, metadata = _inputfile_load(
doc,
baseuri,
Expand All @@ -359,6 +361,7 @@ def load_inputfile_by_string(
if loadingOptions is None:
loadingOptions = cwl.LoadingOptions(fileuri=uri)

loadingOptions = cwl.LoadingOptions(copyfrom=loadingOptions, no_link_check=True)
result, metadata = _inputfile_load(
result,
uri,
Expand All @@ -378,6 +381,7 @@ def load_inputfile_by_yaml(
if loadingOptions is None:
loadingOptions = cwl.LoadingOptions(fileuri=uri)

loadingOptions = cwl.LoadingOptions(copyfrom=loadingOptions, no_link_check=True)
result, metadata = _inputfile_load(
yaml,
uri,
Expand Down
4 changes: 4 additions & 0 deletions cwl_utils/parser/cwl_v1_2_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ def load_inputfile(
baseuri = cwl.file_uri(os.getcwd()) + "/"
if loadingOptions is None:
loadingOptions = cwl.LoadingOptions()

loadingOptions = cwl.LoadingOptions(copyfrom=loadingOptions, no_link_check=True)
result, metadata = _inputfile_load(
doc,
baseuri,
Expand All @@ -422,6 +424,7 @@ def load_inputfile_by_string(
if loadingOptions is None:
loadingOptions = cwl.LoadingOptions(fileuri=uri)

loadingOptions = cwl.LoadingOptions(copyfrom=loadingOptions, no_link_check=True)
result, metadata = _inputfile_load(
result,
uri,
Expand All @@ -441,6 +444,7 @@ def load_inputfile_by_yaml(
if loadingOptions is None:
loadingOptions = cwl.LoadingOptions(fileuri=uri)

loadingOptions = cwl.LoadingOptions(copyfrom=loadingOptions, no_link_check=True)
result, metadata = _inputfile_load(
yaml,
uri,
Expand Down

0 comments on commit 294dd35

Please sign in to comment.