Skip to content

Issues 862 direnv fix#877

Open
mohitrajain wants to merge 4 commits intomasterfrom
issues-862-direnv-fix
Open

Issues 862 direnv fix#877
mohitrajain wants to merge 4 commits intomasterfrom
issues-862-direnv-fix

Conversation

@mohitrajain
Copy link
Contributor

@mohitrajain mohitrajain commented Mar 9, 2026

Change type

  • Fix
  • Feature
  • Documentation
  • Security / Upgrade

Basic information

  • THIS CHANGE REQUIRES A DEPLOYMENT PACKAGE RELEASE
  • THIS CHANGE REQUIRES A WIRE-DOCS RELEASE

Testing

  • I ran/applied the changes myself, in a test environment.
  • The CI job attached to this repo will test it for me.

Offline Build CI (label-based)

Add one or more labels to trigger offline builds:

  • build-default - Full production build (ansible, terraform, all packages)
  • build-demo - Demo/WIAB build
  • build-wiab-staging - WIAB-staging build
  • build-min - Minimal build (fastest, essential charts only)
  • build-all - Run all three builds

Note: No builds run by default. Add a label to trigger CI.

Tracking

  • I added a new entry in an appropriate subdirectory of changelog.d
  • I mentioned this PR in Jira, OR I mentioned the Jira ticket in this PR.
  • I mentioned this PR in one of the issues attached to one of our repositories.

Knowledge Transfer

  • An Asciinema session is attached to the Jira ticket.

Motivation

Objective

Reason

Use case

@mohitrajain mohitrajain requested review from a team and julialongtin as code owners March 9, 2026 10:55
Copy link
Contributor

@lwille lwille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve as this will fix my issue, but left some thoughts to consider :)

.envrc Outdated
Comment on lines +23 to +24
echo " If you don't want to use it, run the following command to unset it"
echo " git config --unset core.hooksPath"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought: this will be overwritten by the next direnv run, so I'd rather output a hint about how to skip commit validation if you really need to, e.g.

Suggested change
echo " If you don't want to use it, run the following command to unset it"
echo " git config --unset core.hooksPath"
echo "To skip commit validation via git hooks, use `git commit --no-verify ...`.

Git Hooks has been configured in your current environment.
Read more about them here: https://github.com/wireapp/wire-server-deploy?tab=readme-ov-file#optional-git-commit-message-verification
If you don't want to use it, run the following command to unset it
git config --unset core.hooksPath
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: it's not really true, since the next direnv run will activate the hooks again.

suggestion: If you want people to be able to opt out of git hooks altogether, you could invent something like a NO_GIT_HOOKS env var that one could put into .envrc.local (which is evaluated prior to setting up the hooks).

Bear in mind I don't really understand your workflow and why being able to opt out of githooks is such a big deal - but in case validation breaks, people can always use --no-verify when committing.
Personally, I'm always happy if projects provide validation hooks, so I'd not even make a fuzz about disabling it 😅

@sonarqubecloud
Copy link

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 this pull request may close these issues.

2 participants