Giter VIP home page Giter VIP logo

Comments (7)

alqh avatar alqh commented on June 12, 2024 4

PLus 1 to this issue...

--exec -- docker compose up

produces the following error:

docker: 'composeup' is not a docker command.

I'm on v0.20.5

It seems like its broken since v0.20.4

from granted.

abusch avatar abusch commented on June 12, 2024 1

I think the fix should work as long as the command to execute is the last variable. According to the read man page, the last variable should contain the whole remainder of the line, no matter if the separator appears in it or not.

from granted.

lyoung-confluent avatar lyoung-confluent commented on June 12, 2024 1

@abusch You're right, that's convenient, though the fix was a bit more nuanced as arguments with spaces need to be maintained as single arguments so have to be shell escaped: #584

from granted.

abusch avatar abusch commented on June 12, 2024

I suspect this might have something to do with the strings.Join(execCfg.Args, "") in this line (which probably should be strings.Join(execCfg.Args, " ")).

from granted.

JoshuaWilkes avatar JoshuaWilkes commented on June 12, 2024

Thanks for raising this @abusch

For now you should be able to run assume --exec -- aws dynamodb list-tables

Using -- after the exec flag means you don't need to use quotes around your command.

I will look into the issue with the quoted exec syntax

from granted.

abusch avatar abusch commented on June 12, 2024

Unfortunately, using -- doesn't seem to work, neither with bash nor fish. I'm getting the same issue.

from granted.

lyoung-confluent avatar lyoung-confluent commented on June 12, 2024

I think @abusch correctly identified the root-cause as #549, I confirmed this by running assumego --verbose <profile> --exec -- aws sts get-caller-identity which shows that the multiple separate arguments are being correctly parsed:

[DEBUG] exec config:&{aws [sts get-caller-identity]}

However when the GrantedExec output is generated the final argument GRANTED_12 is the concatenated values:

GrantedExec <key> <secret> None us-west-2 None false None None None None aws stsget-caller-identity

Unfortunately I don't think fixing this is as easy as switching from "" to " " though because the IFS=' ' read line would read the additional arguments as different variables (ex: GRANTED_13, GRANTED_14, etc)...

from granted.

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.