This repository was archived by the owner on Nov 11, 2025. It is now read-only.
Install cloc in Dockerfile to fix git scanner#110
Merged
turbaszek merged 2 commits intoapache:mainfrom Dec 13, 2020
kaxil:fix-git-scanner
Merged
Install cloc in Dockerfile to fix git scanner#110turbaszek merged 2 commits intoapache:mainfrom kaxil:fix-git-scanner
turbaszek merged 2 commits intoapache:mainfrom
kaxil:fix-git-scanner
Conversation
Install cloc (https://github.com/AlDanial/cloc). `cloc` is a Prerequisite as mentioned in https://apache-kibble.readthedocs.io/en/latest/setup.html#installing-the-server Without it the count in the git scanner fails with following: ``` [thread#1:plugins/scanners/git-sloc]: Running SLoC count for https://github.com/kaxil/boring-cyborg.git /bin/sh: 1: cloc: not found Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "kibble-scanner.py", line 126, in run scanner.scan(self.bit, obj) File "/kibble/kibble/scanners/scanners/git-sloc.py", line 68, in scan languages, codecount, comment, blank, years, cost = sloc.count(gpath) File "/kibble/kibble/scanners/utils/sloc.py", line 30, in count inp = subprocess.check_output( File "/usr/local/lib/python3.8/subprocess.py", line 411, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/local/lib/python3.8/subprocess.py", line 512, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'cloc --quiet --progress-rate=0 --processes=4 /tmp/kaxil/git/2a219855377dc934c4fe168fe21b8fdf2fe3d5733fc86e93ea4a3cff' returned non-zero exit status 127. 'All done scanning for now, found 1 organisations and 1 sources to process.' ```
Member
Author
|
Fixed conflict @turbaszek |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Install cloc (https://github.com/AlDanial/cloc).
clocis a Prerequisite as mentioned in https://apache-kibble.readthedocs.io/en/latest/setup.html#installing-the-serverWithout it the count in the git scanner fails with following:
cc @turbaszek @michalslowikowski00 @Humbedooh