build/analysis: copy cockroachdb code to third_party
We are currently fetching the full cockroach repository just for a hand
full of nogo passes. As the version we use is licensed under Apache 2.0,
we can copy them to third_party, allowing us to modify them and keep them
stable.
Change-Id: Ia28b181296138eef922485b6517d1e0066766715
Reviewed-on: https://review.monogon.dev/c/monogon/+/4486
Reviewed-by: Leopold Schabel <leo@monogon.tech>
Tested-by: Jenkins CI
diff --git a/build/analysis/BUILD.bazel b/build/analysis/BUILD.bazel
index 98a1563..aeabda7 100644
--- a/build/analysis/BUILD.bazel
+++ b/build/analysis/BUILD.bazel
@@ -62,12 +62,12 @@
# Append some passes provided by CockroachDB.
NOGO_PASSES += [
- "@com_github_cockroachdb_cockroach//pkg/testutils/lint/passes/errcmp",
- "@com_github_cockroachdb_cockroach//pkg/testutils/lint/passes/errwrap",
- "@com_github_cockroachdb_cockroach//pkg/testutils/lint/passes/hash",
- "@com_github_cockroachdb_cockroach//pkg/testutils/lint/passes/nilness",
- "@com_github_cockroachdb_cockroach//pkg/testutils/lint/passes/returnerrcheck",
- "@com_github_cockroachdb_cockroach//pkg/testutils/lint/passes/unconvert",
+ "//third_party/com_github_cockroachdb_cockroach/errcmp",
+ "//third_party/com_github_cockroachdb_cockroach/errwrap",
+ "//third_party/com_github_cockroachdb_cockroach/hash",
+ "//third_party/com_github_cockroachdb_cockroach/nilness",
+ "//third_party/com_github_cockroachdb_cockroach/returnerrcheck",
+ "//third_party/com_github_cockroachdb_cockroach/unconvert",
]
# Combine all staticcheck analyzers with a list
@@ -147,6 +147,11 @@
"sqlite3.*go": "third_party",
},
},
+ "haslicense": {
+ "exclude_files": {
+ "third_party/": "third_party",
+ },
+ },
},
]