Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline fails during composer install #13

Closed
torhoehn opened this issue Mar 5, 2021 · 3 comments · Fixed by #14
Closed

Pipeline fails during composer install #13

torhoehn opened this issue Mar 5, 2021 · 3 comments · Fixed by #14

Comments

@torhoehn
Copy link
Contributor

torhoehn commented Mar 5, 2021

In our GitLab Pipeline the plugin breaks a composer install, because no git directory exists. Would it be possible to skip the installation of the hooks in this case? Maybe using a CI/CD variable?

CaptainHook Composer Plugin
Installation failed, reverting ./composer.json to its original content.
In ComposerPlugin.php line 274:
                                                                               
  Shiver me timbers! CaptainHook could not install yer git hooks! (git directory not found)
@heiglandreas
Copy link
Contributor

@sebastianfeldmann: Would checking for an existing .git folder be something that The Cap'n should do? Or would we skip installing The Ca'n in the first place when no .git folder is found?

Or should we check for the usual suspects like CI-environment variables to not install The Cap'n in the first place? That might make more sense perhaps...

@sebastianfeldmann
Copy link
Contributor

I just released version 5.2.4 with the fix

Big thanks to @heiglandreas :)

@torhoehn
Copy link
Contributor Author

torhoehn commented Mar 5, 2021

Thanks to both of you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants