Git Product home page Git Product logo

Comments (4)

colindembovsky avatar colindembovsky commented on June 12, 2024

Thanks for reporting this @ColinDabritzViewpoint - I'll take a look at this. Including a multi-line option sounds like a good solution.

from cols-agent-tasks.

colindembovsky avatar colindembovsky commented on June 12, 2024

Hi @ColinDabritzViewpoint I'm not sure how the sh.sed could ever have worked, but I could repro and couldn't get it to work. I eventually used string.replace instead of the sh.sed call and it seems to be working. Let me know if the 1.1.119 version of the extension pack (the task version should be 2.2.119) works for you.

from cols-agent-tasks.

ColinDabritzViewpoint avatar ColinDabritzViewpoint commented on June 12, 2024

See this change set in sh.sed:
shelljs/shelljs@1ee696d

The previous implementation was:
var result = fs.readFileSync(file, 'utf8').replace(regex, replacement);

So string.replace is apparently how it used to work in 0.5.3. The newer version starts breaking out lines, and changes the behavior we depended on.

We're on VSTS, and it looks like 2.x has updated for us, we're seeing version 2.2.119

2017-04-26T16:37:36.4839826Z ==============================================================================
2017-04-26T16:37:36.4839826Z Task         : Version Assemblies
2017-04-26T16:37:36.4839826Z Description  : Updates the version number of the assemblies to match the build number
2017-04-26T16:37:36.4839826Z Version      : 2.2.119
2017-04-26T16:37:36.4839826Z Author       : Colin Dembovsky (colinsalmcorner.com)
2017-04-26T16:37:36.4839826Z Help         : [More Information](https://github.com/colindembovsky/cols-agent-tasks/tree/master/Tasks/VersionAssemblies)
2017-04-26T16:37:36.4839826Z ==============================================================================

I was able to run our existing work-around build as well as a new build which reverted the work around (and would have failed previously).

Both versions have gotten the correct replacements.

This preserves our existing behavior dependency in 2.x.

Thank you for your curation of this excellent set of tasks, and your quick responses, it is greatly appreciated!

I think we're good to go, and this issue is resolved.

from cols-agent-tasks.

colindembovsky avatar colindembovsky commented on June 12, 2024

Thanks @ColinDabritzViewpoint - I noticed the line break-out in shelljs, and stole the string.replace idea from the previous version :-). Glad you're unstuck!

from cols-agent-tasks.

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.