@@ -14,12 +14,6 @@ many *.scip (https://github.com/sourcegraph/scip) and
14
14
These files encode information about which symbols are referenced from which
15
15
locations in your source code.
16
16
17
- This aspect only works on Linux when using the `local` spawn strategy because
18
- the `run_shell` action writes SemanticDB and SCIP files to the provided
19
- --targetroot argument. It should be possible to avoid this requirement
20
- in the future if there's a strong desire to make the aspect work with the
21
- default (sandboxed) spawn strategy.
22
-
23
17
Use the command below to merge all of these SCIP files into a single index:
24
18
25
19
find bazel-bin/ -type f -name '*.scip' | xargs cat > index.scip
@@ -34,7 +28,7 @@ Use `src code-intel upload` to upload the unified SCIP file to Sourcegraph:
34
28
35
29
Example command to run this aspect directly:
36
30
37
- bazel build //... --spawn_strategy=local -- aspects path/to/scip_java.bzl%scip_java_aspect --output_groups=scip --define=sourceroot=$(pwd) --define=scip_java_binary=$(which scip-java) --define=java_home=$JAVA_HOME
31
+ bazel build //... --aspects path/to/scip_java.bzl%scip_java_aspect --output_groups=scip --define=scip_java_binary=$(which scip-java) --define=java_home=$JAVA_HOME
38
32
39
33
To learn more about aspects: https://bazel.build/extending/aspects
40
34
"""
@@ -140,9 +134,8 @@ def _scip_java(target, ctx):
140
134
deps = [javac_action .inputs , annotations .processor_classpath ]
141
135
142
136
ctx .actions .run_shell (
143
- command = "\" {}\" index --no-cleanup --index-semanticdb.allow-empty-index --cwd \" {} \" -- targetroot {} --scip-config \" {}\" --output \" {}\" " .format (
137
+ command = "\" {}\" index --no-cleanup --index-semanticdb.allow-empty-index --targetroot {} --scip-config \" {}\" --output \" {}\" " .format (
144
138
ctx .var ["scip_java_binary" ],
145
- ctx .var ["sourceroot" ],
146
139
targetroot .path ,
147
140
build_config_path .path ,
148
141
scip_output .path ,
0 commit comments