Giter Site home page Giter Site logo

Comments (7)

roopakv avatar roopakv commented on August 17, 2024

@noisyscanner what version of jq are you using? Because I know this command is being used by at least 4 company's pipelines with no issues. Maybe I should also check for versions in the beginning part of the script

from orbs.

roopakv avatar roopakv commented on August 17, 2024

Hmm we are on the same version of jq jq-1.5-1-a5b5cbe

Could you paste a code snippet of how you are calling the orb. I remember running into this myself. It was weirdness with jq I think.

Here is the sample monorepo: https://github.com/swissknife/circle-monorepo

the recent pipelines seem to work.

Also here is how the jq -cr is supposed to work in your case. My guess is that some invalid js or is the case. The reason we don't need '' to -cr is that the input is coming from the piped command. But maybe there is some weird case I haven't encountered yet :D

image

Also I'm glad you are trying the orb out :) It has saved us a TON of time.

from orbs.

noisyscanner avatar noisyscanner commented on August 17, 2024

That was a quick response! Locally I installed the same version as you mention, and dry-ran it through as you see in the commands echoed above, and got the same issue. Adding the quote after like jq -cr '' fixed it for me:

image

from orbs.

noisyscanner avatar noisyscanner commented on August 17, 2024

@roopakv the command you posted also worked fine for me, but try appending > file to the end - then I get the error

from orbs.

roopakv avatar roopakv commented on August 17, 2024

@noisyscanner all right lets give it a shot, send me a PR.

I'll have to make sure it works on the sample repo and some internal repos. as long it does we should be good :)

from orbs.

roopakv avatar roopakv commented on August 17, 2024

you are right, the command files when adding > file. However im so confused. We are using this daily, and no pipelines are failing 🤷

oh wells! thanks for the catch

from orbs.

roopakv avatar roopakv commented on August 17, 2024

@noisyscanner published. you should be able to use version 0.44.0 with the fix.

You should see the latest version at https://orb.swissknife.dev

thanks for the fix :)

from orbs.

Related Issues (17)

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.