Skip to content
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

Inconsistent output from wdltools format #215

Open
wholtz opened this issue Mar 22, 2022 · 0 comments
Open

Inconsistent output from wdltools format #215

wholtz opened this issue Mar 22, 2022 · 0 comments

Comments

@wholtz
Copy link

wholtz commented Mar 22, 2022

I'm trying to use wdltools format in continuous integration testing, in order to verify that the WDL file has been properly formatted. I've noticed that the output of

wdltools format test.wdl

generates a trailing newline, while

wdltools format --overwrite test.wdl

does not generate a file with a trailing newline. I would like to see the wdltools format output be independent of the --overwrite flag setting.

$ wdltools format --overwrite test.wdl
$ diff test.wdl <(wdltools format test.wdl)
0a1
> test.wdl
22c23
< }
\ No newline at end of file
---
> }
$ cat test.wdl
version 1.0

workflow my_workflow {
  input {
    String message
  }

  call display {
    input:
      message = message
  }
}

task display {
  input {
    String message
  }

  command <<<
    printf '~{message}'
  >>>
}$ wdltools format test.wdl
test.wdl
version 1.0

workflow my_workflow {
  input {
    String message
  }

  call display {
    input:
      message = message
  }
}

task display {
  input {
    String message
  }

  command <<<
    printf '~{message}'
  >>>
}
$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant