Fix go.mod for tools/compliance

Now it can be built with `go build`, and can be cross-referenced.

Test: treehugger
Change-Id: Ic35631ff6a915c8cf58db14aa83c849549e64aba
This commit is contained in:
Sasha Smundak
2022-08-01 14:24:21 -07:00
parent 1fabb2a942
commit ded9acd86d
2 changed files with 12 additions and 2 deletions

View File

@@ -4,9 +4,17 @@ require google.golang.org/protobuf v0.0.0
replace google.golang.org/protobuf v0.0.0 => ../../../../external/golang-protobuf
require android/soong v0.0.0
require (
android/soong v0.0.0
github.com/google/blueprint v0.0.0
)
require golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
replace android/soong v0.0.0 => ../../../soong
replace github.com/google/blueprint => ../../../blueprint
replace android/soong v0.0.0 => ../../../soong
// Indirect deps from golang-protobuf
exclude github.com/golang/protobuf v1.5.0

2
tools/compliance/go.sum Normal file
View File

@@ -0,0 +1,2 @@
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f h1:uF6paiQQebLeSXkrTqHqz0MXhXXS1KgF41eUdBNvxK0=
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8=