Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions constants.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@
Various constants used to build bazel-diff
"""

DEFAULT_JVM_EXTERNAL_TAG = "3.3"

RULES_JVM_EXTERNAL_SHA = "d85951a92c0908c80bd8551002d66cb23c3434409c814179c0ff026b53544dab"

BUILD_PROTO_MESSAGE_SHA = "50b79faec3c4154bed274371de5678b221165e38ab59c6167cc94b922d9d9152"
DEFAULT_JVM_EXTERNAL_TAG = "4.2"
RULES_JVM_EXTERNAL_SHA = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea15e9e5ba1ca"
13 changes: 6 additions & 7 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,19 @@ def bazel_diff_dependencies(rules_jvm_external_tag=DEFAULT_JVM_EXTERNAL_TAG,
http_archive,
name = "bazel_skylib",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz",
],
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728",
)

_maybe(
http_archive,
name = "rules_proto",
sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
sha256 = "c22cfcb3f22a0ae2e684801ea8dfed070ba5bed25e73f73580564f250475e72d",
strip_prefix = "rules_proto-4.0.0-3.19.2",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0-3.19.2.tar.gz",
],
)

Expand Down
81 changes: 0 additions & 81 deletions src/main/java/com/bazel_diff/GitClient.java

This file was deleted.

10 changes: 0 additions & 10 deletions src/main/java/com/bazel_diff/main.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ public Integer call() throws IOException {
System.out.println("outputPath was not provided! Exiting");
return ExitCode.USAGE;
}
GitClient gitClient = new GitClientImpl(workspacePath);
BazelClient bazelClient = new BazelClientImpl(
workspacePath,
bazelPath,
Expand All @@ -125,15 +124,6 @@ public Integer call() throws IOException {
keepGoing
);
TargetHashingClient hashingClient = new TargetHashingClientImpl(bazelClient, new FilesClientImp());
try {
gitClient.ensureAllChangesAreCommitted();
} catch (IOException | InterruptedException e) {
e.printStackTrace();
return ExitCode.SOFTWARE;
} catch (GitClientException e) {
System.out.println(String.format("There are active changes in '%s', please commit these changes before running bazel-diffs", workspacePath));
return ExitCode.USAGE;
}
Gson gson = new Gson();
FileReader startingFileReader;
FileReader finalFileReader;
Expand Down