-
Notifications
You must be signed in to change notification settings - Fork 241
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
install.sh uses ancient talisman release because newer binaries are incompatible with script. #247
Comments
…h talisman into .git/hooks/bin
https://github.com/thoughtworks/talisman#installation doesnot instructs using install.sh from root directory. Apparently https://github.com/thoughtworks/talisman/blob/master/install.sh is a leftover from the past P.S. My bad missed https://github.com/thoughtworks/talisman#installation-to-a-single-project |
…249) * [Resolves #170] Add pre-commit option in install.sh * [Issue #247] update VERSION and SHAs to v1.8.0 * [Issue #247] download talisman_hook_script.bash along with talisman into .git/hooks/bin * [Issue #247] 🚨 Fix shellcheck warnings * [Issue #247] 📝 update doc, single project install * 📝 fix inaccuracy in documentation * 🐛 Handle bug introduced in #246 Co-authored-by: derwentx <derwentx@gmail.com>
Hmmm, well it looks like this is the only way to install Talisman to a single repo according to the instructions. If it's a leftover from the past, should the instructions reflect that? Is there an alternative way to install Talisman to a single project? |
Thanks for merging. |
@derwent-m |
Cheers @svishwanath-tw , I've opened a PR for updating the gh-pages branch |
🐛 fix SC2076 quoted regex [Issue thoughtworks#247] 🏁 download Windows binaries
install script has been updated with latest SHAs and version (at the time). Opened a new issue to address this into the future. |
Is your feature request related to a problem? Please describe.
When using install.sh, it installs talisman v0.3.2, which is over 2 years old. I tried replacing this binary with the latest, release, however when I tried triggering the hook, talisman responded with the help message and didn't actually check the commit.
Describe the solution you'd like
the install script should be updated so that it downloads a more recent talisman binary to the git hooks directory, and the git hook should be configured in a way such that Talisman is called correctly.
My suggestion:
VERSION
to "v1.8.0"SHA
stalisman_hook_script.bash
along withtalisman
binary into.git/hooks/bin
.git/hook/$HOOK_NAME
is now just a one-liner that setsTALISMAN_BINARY=".git/hooks/bin/talisman"
and calls.git/hooks/bin/talisman_hook_script.bash
Describe alternatives you've considered
Instead of downloading
talisman_hook_script.bash
you could use heredoc that has the basic functionality needed fromtalisman_hook_script.bash
, but this would mean maintaining 2 different scripts that provide the same functionality.Additional context
PR incoming!
The text was updated successfully, but these errors were encountered: