Skip to content

Pre-commit based Installation fails - pathspec '0.2.2' did not match and others #80

Closed
@michael-delarue-axomic

Description

@michael-delarue-axomic

Expected behaviour

Adding checkmake to the pre-commit file should install checkmake and work

Actual behaviour - version 0.2.2

  -   repo: https://github.com/mrtazz/checkmake.git
      rev: 0.2.2
      hooks:
      -   id: checkmake

run pre-commit run -a outputs

$ pre-commit run -a
[INFO] Initializing environment for https://github.com/mrtazz/checkmake.git.
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/git', 'checkout', '0.2.2')
return code: 1
expected return code: 0
stdout: (none)
stderr:
    error: pathspec '0.2.2' did not match any file(s) known to git
    
Check the log at /home/mdd/.cache/pre-commit/pre-commit.log

Actual behaviour - version 0.2.1

  -   repo: https://github.com/mrtazz/checkmake.git
      rev: 0.2.2
      hooks:
      -   id: checkmake

run pre-commit run -a outputs

$ pre-commit run -a
[INFO] Initializing environment for https://github.com/mrtazz/checkmake.git.
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/git', 'checkout', '0.2.2')
return code: 1
expected return code: 0
stdout: (none)
stderr:
    error: pathspec '0.2.2' did not match any file(s) known to git
    
Check the log at /home/mdd/.cache/pre-commit/pre-commit.log

Actual behaviour - version 0.2.1

  -   repo: https://github.com/mrtazz/checkmake.git
      rev: 0.2.1
      hooks:
      -   id: checkmake

run pre-commit run -a outputs

$ pre-commit run -a
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy.
[INFO] Initializing environment for https://github.com/psf/black.
[INFO] Initializing environment for https://github.com/pycqa/isort.
[INFO] Initializing environment for https://github.com/pycqa/flake8.
[INFO] Initializing environment for https://github.com/mrtazz/checkmake.git.
An error has occurred: InvalidManifestError: 
=====> /home/mdd/.cache/pre-commit/reposdl9a_i5/.pre-commit-hooks.yaml is not a file
Check the log at /home/mdd/.cache/pre-commit/pre-commit.log

Output of checkmake --version

n/a - not installed locally

Output of checkmake --debug <your makefile>

n/a - not installed locally

Output of make --version

$ make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
Licence GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Sample Makefile to reproduce issue

n/a - no Makefile needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions