Give compliance a pkgPath
Change the pkgPath of compliance to android/soong/tools/compliance
to distinguish it from the standard library.
Also add a go.mod file so that the Go tools can find the package.
Test: go test ./...
Change-Id: I061be2b91378db6508e9c88be2548648af8be4e7
diff --git a/tools/compliance/cmd/htmlnotice.go b/tools/compliance/cmd/htmlnotice.go
index 3456a49..2f59ee0 100644
--- a/tools/compliance/cmd/htmlnotice.go
+++ b/tools/compliance/cmd/htmlnotice.go
@@ -16,7 +16,6 @@
import (
"bytes"
- "compliance"
"flag"
"fmt"
"html"
@@ -25,6 +24,8 @@
"os"
"path/filepath"
"strings"
+
+ "android/soong/tools/compliance"
)
var (