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

crlf line endings cause issues on windows #201

Closed
webuniverseio opened this issue May 4, 2019 · 2 comments
Closed

crlf line endings cause issues on windows #201

webuniverseio opened this issue May 4, 2019 · 2 comments

Comments

@webuniverseio
Copy link

webuniverseio commented May 4, 2019

  • Task version
    2.5.1

  • OS
    Windows 10

  • Example Taskfile showing the issue

version: '2'

tasks:
  hello:
    cmds:
      - echo 'Hello World from Task!'
    silent: true

Hi, thanks for your support. I have an issue with latest version when Taskfile.yml was created on windows & has crlf line endings. As a result of running task -l I'm getting following error

yaml: line 4: mapping values are not allowed in this context

Once I changed line endings to lf task started to work, I can run task hello.

Thank you.

@andreynering
Copy link
Member

andreynering commented May 4, 2019

Hi @webuniverseio,

This seems to be an issue with the new version of the YAML library, see: go-yaml/yaml#450

@andreynering andreynering added the type: bug Something not working as intended. label May 4, 2019
@andreynering
Copy link
Member

I reverted the upgrade for now to fix this issue.

@pd93 pd93 removed the type: bug Something not working as intended. label Dec 16, 2024
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

3 participants