Code Monkey home page Code Monkey logo

Comments (8)

ddelnano avatar ddelnano commented on May 24, 2024

I’m guessing that ~/.composer/bin is in your PATH but not vendor/bin. I wouldn’t call this a known issue per say but the docs could be more clear on this. Dredd could also be smarter to look in the current working directory’s vendor/bin directory. However, since this is the first issue I’ve seen with this I think updating the docs is probably enough.

from dredd-hooks-php.

rathesDot avatar rathesDot commented on May 24, 2024

from dredd-hooks-php.

ddelnano avatar ddelnano commented on May 24, 2024

Can you verify that fixes it for you and then I will update the docs?

from dredd-hooks-php.

rathesDot avatar rathesDot commented on May 24, 2024

I'm wondering if I had to add the local vendor/bin of my project to PATH and if yes, wouldn't I have to those vendor/bin of every single project to PATH?

I'm normally working on a Windows Machine, on which I only have a single PATH set for composer ... Not sure how it would work on macOS or other Unix-style OS

from dredd-hooks-php.

ddelnano avatar ddelnano commented on May 24, 2024

I'm talking about a relative path so it will work in your current working directory is where your vendor folder is. Sorry I don't have windows experience so I can't speak to that but linux / os x you would do something like

export PATH="$PATH:vendor/bin"

from dredd-hooks-php.

rathesDot avatar rathesDot commented on May 24, 2024

Yeah that means, I would have to run this on every single project I have ... That would be a solution, but only for Unix-Styles ...
In Windows there would be something like setx path "%path%;c:\yourPath" ... or as I did, just use vendor/bin/dredd-hooks-php instead of just php ...

I think a first good solution would be to add some additional note to the README ...

If you want, I can try to collect the information that I would expect, and you can then check, if you want to add them.

from dredd-hooks-php.

spawnia avatar spawnia commented on May 24, 2024

I suggest adding a dredd config file to your project. This way, you do not have to specify the command line arguments every time. Another advantage of this would be that for other team members, no extra setup is required and they can just run dredd and do not have to worry about their path, cli arguments...

from dredd-hooks-php.

rathesDot avatar rathesDot commented on May 24, 2024

I guess we can close this issue. (not relevant for me anymore). We can always re-open if someone still has questions

from dredd-hooks-php.

Related Issues (18)

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.