Package Details: gitlint 0.19.1-3

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: 6
Popularity: 0.24
First Submitted: 2015-12-23 18:28 (UTC)
Last Updated: 2024-04-22 17:54 (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

1 2 Next › Last »

yorickpeterse commented on 2024-01-29 13:59 (UTC)

When updating, the following errors are displayed:

==> Starting check()...
================================================================== test session starts ==================================================================
platform linux -- Python 3.11.6, pytest-8.0.0, pluggy-1.4.0
rootdir: /var/home/yorickpeterse/homes/arch/.cache/yay/gitlint/src/gitlint-0.19.1/gitlint-core
collected 0 items / 27 errors

======================================================================== ERRORS =========================================================================
____________________________________________________ ERROR collecting gitlint/tests/cli/test_cli.py _____________________________________________________
ImportError while importing test module '/var/home/yorickpeterse/homes/arch/.cache/yay/gitlint/src/gitlint-0.19.1/gitlint-core/gitlint/tests/cli/test_cli.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
gitlint/tests/cli/test_cli.py:11: in <module>
    from gitlint.tests.base import BaseTestCase
E   ModuleNotFoundError: No module named 'gitlint.tests'
_________________________________________________ ERROR collecting gitlint/tests/cli/test_cli_hooks.py __________________________________________________
ImportError while importing test module '/var/home/yorickpeterse/homes/arch/.cache/yay/gitlint/src/gitlint-0.19.1/gitlint-core/gitlint/tests/cli/test_cli_hooks.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
gitlint/tests/cli/test_cli_hooks.py:8: in <module>
    from gitlint.tests.base import BaseTestCase
E   ModuleNotFoundError: No module named 'gitlint.tests'

To fix this I had to remove the check function.

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?