Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38a61931 authored by Colin Cross's avatar Colin Cross
Browse files

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
parent 2c51bd1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,5 +113,5 @@ bootstrap_go_package {
        "golang-protobuf-encoding-prototext",
        "license_metadata_proto",
    ],
    pkgPath: "compliance",
    pkgPath: "android/soong/tools/compliance",
}
+2 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@ package main

import (
	"bytes"
	"compliance"
	"flag"
	"fmt"
	"io"
@@ -24,6 +23,8 @@ import (
	"os"
	"path/filepath"
	"strings"

	"android/soong/tools/compliance"
)

var (
+2 −1
Original line number Diff line number Diff line
@@ -15,13 +15,14 @@
package main

import (
	"compliance"
	"flag"
	"fmt"
	"io"
	"os"
	"path/filepath"
	"sort"

	"android/soong/tools/compliance"
)

func init() {
+2 −1
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@
package main

import (
	"compliance"
	"flag"
	"fmt"
	"io"
@@ -23,6 +22,8 @@ import (
	"path/filepath"
	"sort"
	"strings"

	"android/soong/tools/compliance"
)

var (
+2 −1
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@
package main

import (
	"compliance"
	"flag"
	"fmt"
	"io"
@@ -23,6 +22,8 @@ import (
	"path/filepath"
	"sort"
	"strings"

	"android/soong/tools/compliance"
)

var (
Loading