GithubHelp home page GithubHelp logo

Comments (5)

BrainMaestro avatar BrainMaestro commented on May 25, 2024 2

Hi @bertrandjamin thanks for the detailed bug report. You're right, this seems like an oversight. set -e could be a choice, but it seems to have many drawbacks. This specific issue was fixed in #106, I was supposed to make a release, but other things came up. I will try to make a new release soon. You can use dev-master in the meantime to confirm that it has the expected behavior

from composer-git-hooks.

Shohoo avatar Shohoo commented on May 25, 2024 1

"config": { "stop-on-failure": ["pre-commit"] }, "pre-commit": [ "echo committing as $(git config user.name)", "composer run phpstan", "composer run phpstan-generate-baseline" ]

still passes

from composer-git-hooks.

bertrandjamin avatar bertrandjamin commented on May 25, 2024

Hi @BrainMaestro,

Thanks for your answer and for the link on the -eoption drawbacks πŸ‘
I was not aware of those "complications" ^^

The && solution seems perfect and I will use it right after your next release !

from composer-git-hooks.

Asenar avatar Asenar commented on May 25, 2024

Hi,

I strongly suggest to add in documentation than the hooks behaviour is not Β«usualΒ» and in case of many hooks, pre hooks will pass.

the && hack seems to fix the problem, but why not generate the hooks with something like ./command1 && ./command2 || exit 1 ?

from composer-git-hooks.

BrainMaestro avatar BrainMaestro commented on May 25, 2024

A new release has been made which solves this. Feel free to reopen if it reoccurs

from composer-git-hooks.

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.