You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sonarqube cannot read from the .git directory, scm files are not are not readable.
INFO: SCM Publisher SCM provider for this project is: git
INFO: SCM Publisher 2 source files to be analyzed
INFO: SCM Publisher 0/2 source files have been analyzed (done) | time=93ms
WARN: Missing blame information for the following files:
WARN: * java-tutorial/src/main/java/com/example/Greeting.java
WARN: * java-tutorial/src/main/java/com/example/ProjectRunner.java
WARN: This may lead to missing/broken features in SonarQube
More info.
INFO: Base dir: /root/.cache/bazel/_bazel_root/c094d1e8783f928ddd8321888260df40/execroot/main/bazel-out/k8-fastbuild/bin/java-tutorial/sq.runfiles/main
ls -la /root/.cache/bazel/_bazel_root/c094d1e8783f928ddd8321888260df40/execroot/main/bazel-out/k8-fastbuild/bin/java-tutorial/sq.runfiles/main
total 24
drwxr-xr-x 6 root root 4096 Nov 12 18:58 .
drwxr-xr-x 5 root root 4096 Nov 12 18:58 ..
drwxr-xr-x 7 root root 4096 Nov 12 18:45 .git
drwxr-xr-x 3 root root 4096 Nov 12 18:59 .scannerwork
drwxr-xr-x 4 root root 4096 Nov 12 18:10 external
drwxr-xr-x 4 root root 4096 Nov 12 18:58 java-tutorial
git blame java-tutorial/src/main/java/com/example/Greeting.java
fatal: no such path 'bazel-out/k8-fastbuild/bin/java-tutorial/sq.runfiles/main/java-tutorial/src/main/java/com/example/Greeting.java' in HEAD
The .git has broken links!!!
the correct one seem to be under /.cache/bazel/_bazel_root/c094d1e8783f928ddd8321888260df40/execroot/main
Hi,
I cannot get the scm information uplodaed on the SonarQube server.
Simple code snippet using the bazel examples.
This is the BUILD file under the root directory, same location of the .git.
Following is instead the BUILD under the java-tutorial folder.
Sonarqube cannot read from the .git directory, scm files are not are not readable.
INFO: SCM Publisher SCM provider for this project is: git
INFO: SCM Publisher 2 source files to be analyzed
INFO: SCM Publisher 0/2 source files have been analyzed (done) | time=93ms
WARN: Missing blame information for the following files:
WARN: * java-tutorial/src/main/java/com/example/Greeting.java
WARN: * java-tutorial/src/main/java/com/example/ProjectRunner.java
WARN: This may lead to missing/broken features in SonarQube
More info.
INFO: Base dir: /root/.cache/bazel/_bazel_root/c094d1e8783f928ddd8321888260df40/execroot/main/bazel-out/k8-fastbuild/bin/java-tutorial/sq.runfiles/main
ls -la /root/.cache/bazel/_bazel_root/c094d1e8783f928ddd8321888260df40/execroot/main/bazel-out/k8-fastbuild/bin/java-tutorial/sq.runfiles/main
total 24
drwxr-xr-x 6 root root 4096 Nov 12 18:58 .
drwxr-xr-x 5 root root 4096 Nov 12 18:58 ..
drwxr-xr-x 7 root root 4096 Nov 12 18:45 .git
drwxr-xr-x 3 root root 4096 Nov 12 18:59 .scannerwork
drwxr-xr-x 4 root root 4096 Nov 12 18:10 external
drwxr-xr-x 4 root root 4096 Nov 12 18:58 java-tutorial
git blame java-tutorial/src/main/java/com/example/Greeting.java
fatal: no such path 'bazel-out/k8-fastbuild/bin/java-tutorial/sq.runfiles/main/java-tutorial/src/main/java/com/example/Greeting.java' in HEAD
The .git has broken links!!!
the correct one seem to be under /.cache/bazel/_bazel_root/c094d1e8783f928ddd8321888260df40/execroot/main
/.cache/bazel/_bazel_root/c094d1e8783f928ddd8321888260df40/execroot/main# git blame java-tutorial/src/main/java/com/example/Greeting.java
001bd290 (Serge Pomorski 2017-06-06 14:38:22 -0400 1) package com.example;
001bd290 (Serge Pomorski 2017-06-06 14:38:22 -0400 2)
7cfc2470 (Xùdōng Yáng 2020-05-12 20:33:50 +1000 3) public class Greeting {
00000000 (Not Committed Yet 2020-11-12 19:08:53 +0100 4) public static String sayHi() {
001bd290 (Serge Pomorski 2017-06-06 14:38:22 -0400 5) System.out.println("Hi!");
00000000 (Not Committed Yet 2020-11-12 19:08:53 +0100 6) return "Hi!";
001bd290 (Serge Pomorski 2017-06-06 14:38:22 -0400 7) }
001bd290 (Serge Pomorski 2017-06-06 14:38:22 -0400 8) }
001bd290 (Serge Pomorski 2017-06-06 14:38:22 -0400 9)
Can you suggest a work around/fix ?
Thanks.
The text was updated successfully, but these errors were encountered: