GithubHelp home page GithubHelp logo

Comments (5)

stevejroberts avatar stevejroberts commented on June 7, 2024 1

I think this is actually happening when VSTS/TFS checks out your files from the source repo. I encountered the same issue a few days ago when I uploaded files intended for a Linux EC2 instance into my repo and ran a build - the files in the build agent's work area had CR/LF line endings. Initially this was due to my core.autocrlf settings when I checked them in from my Windows laptop but even after correcting the files and re-committing, subsequent builds in the workarea shows Windows line terminations, not Unix ones.

The workaround I used was to add a .gitattributes file to my repo to control the files that checkout should not perform line terminator translation against.

from aws-toolkit-azure-devops.

jonasjuni avatar jonasjuni commented on June 7, 2024

Thanks Steve, I will use the same workaround! as it seems to be a VSTS problem, should I close this issue?

from aws-toolkit-azure-devops.

stevejroberts avatar stevejroberts commented on June 7, 2024

Sure, if you're happy you have enough info to proceed. If you still hit problems, feel free to reopen.

From the perspective of the CodeDeploy task, it zips the files up in the workarea as-is. It never actually opens or otherwise processes the files.

from aws-toolkit-azure-devops.

jonasjuni avatar jonasjuni commented on June 7, 2024

All good Steve,

I've added a
.gitattributes:
* text eol=lf

I'll try to find a better approach, but it's working
Cheers!

from aws-toolkit-azure-devops.

jonasjuni avatar jonasjuni commented on June 7, 2024

I've found another solution as reported here: 5682...

Using a Linux agent to deploy my application...
Many thanks!

from aws-toolkit-azure-devops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.