Package Details: gitlint 0.17.0-8

Git Clone URL: https://aur.archlinux.org/gitlint.git (read-only, click to copy)
Package Base: gitlint
Description: Git commit message linter
Upstream URL: https://github.com/jorisroovers/gitlint
Licenses: MIT
Submitter: atweiden
Maintainer: bunder (carsme)
Last Packager: carsme
Votes: 4
Popularity: 0.000003
First Submitted: 2015-12-23 18:28 (UTC)
Last Updated: 2023-08-10 14:53 (UTC)

Pinned Comments

carsme commented on 2023-07-25 06:39 (UTC)

Updating to version 0.17.0-6 requires manual intervention - gitlint must be explicitly uninstalled and installed from scratch. Updating in-place from 0.17.0-5 to 0.17.0-6 causes a conflict for the completion files.

Latest Comments

carsme commented on 2023-07-25 06:39 (UTC)

Updating to version 0.17.0-6 requires manual intervention - gitlint must be explicitly uninstalled and installed from scratch. Updating in-place from 0.17.0-5 to 0.17.0-6 causes a conflict for the completion files.

carsme commented on 2022-11-07 18:00 (UTC)

Thanks for reporting, @yorickpeterse. Should be fixed now.

yorickpeterse commented on 2022-11-07 17:31 (UTC) (edited on 2022-11-07 17:32 (UTC) by yorickpeterse)

This package isn't installing the completions correctly: they are placed in both root (/) and the completion directories, but the ones in the root directory are never removed.

I'm guessing the .install file runs with / as the working directory, and it never seems to remove the temporary files. Probably it needs to do this instead:

post_install() {
  _GITLINT_COMPLETE=bash_source gitlint > gitlint.bash
  _GITLINT_COMPLETE=fish_source gitlint > gitlint.fish
  _GITLINT_COMPLETE=zsh_source gitlint > gitlint.zsh

  install -Dm644 gitlint.bash "/usr/share/bash-completion/completions/gitlint"
  install -Dm644 gitlint.fish "/usr/share/fish/vendor_completions.d/gitlint.fish"
  install -Dm644 gitlint.zsh "/usr/share/zsh/site-functions/_gitlint"

  rm gitlint.bash
  rm gitlint.fish
  rm gitlint.zsh
}

post_upgrade() {
  _GITLINT_COMPLETE=bash_source gitlint > gitlint.bash
  _GITLINT_COMPLETE=fish_source gitlint > gitlint.fish
  _GITLINT_COMPLETE=zsh_source gitlint > gitlint.zsh

  install -Dm644 gitlint.bash "/usr/share/bash-completion/completions/gitlint"
  install -Dm644 gitlint.fish "/usr/share/fish/vendor_completions.d/gitlint.fish"
  install -Dm644 gitlint.zsh "/usr/share/zsh/site-functions/_gitlint"

  rm gitlint.bash
  rm gitlint.fish
  rm gitlint.zsh
}

post_remove() {
  rm "/usr/share/bash-completion/completions/gitlint"
  rm "/usr/share/fish/vendor_completions.d/gitlint.fish"
  rm "/usr/share/zsh/site-functions/_gitlint"
}

bvtthead commented on 2022-10-31 13:36 (UTC)

'git' needs to be added to the checkdepends array

carsme commented on 2022-10-18 19:12 (UTC)

@Freed, completions should be included now.

Freed commented on 2022-10-13 09:39 (UTC)

gitlint has its shell completions (bash/zsh/fish). Please add them.

See https://github.com/jorisroovers/gitlint/issues/344

Thanks.

carsme commented on 2022-01-05 01:09 (UTC)

@bunder thanks!

bunder commented on 2022-01-04 01:46 (UTC)

@carsme, I've added you to comaintainers.

carsme commented on 2021-12-29 11:11 (UTC)

Hey, this package has been out-of-date for some time. Would you like help with the maintenance?

queer commented on 2018-05-15 12:03 (UTC)

Doesn't seem to work with current version of python-arrow. Compiles fine, but throws an error saying pkg_resources.DistributionNotFound: The 'arrow==0.10.0' distribution was not found and is required by gitlint. Not sure if there's anything you can do about it though.