mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Our existing configure-baseline scripts would give the wrong result if a `vendor` directory wasn't at the root of the repository, or if the `CODEQL_EXTRACTOR_GO_EXTRACT_VENDOR_DIRS` variable was set to `true` indicating the user wants their vendored code scanned. Here I replace the shell scripts that implemented the very simplest behaviour with a small Go program.
19 lines
561 B
Python
Generated
19 lines
561 B
Python
Generated
# generated running `bazel run //go/gazelle`, do not edit
|
|
|
|
load("@rules_go//go:def.bzl", "go_library")
|
|
load("//go:rules.bzl", "codeql_go_binary")
|
|
|
|
go_library(
|
|
name = "go-configure-baseline_lib",
|
|
srcs = ["go-configure-baseline.go"],
|
|
importpath = "github.com/github/codeql-go/extractor/cli/go-configure-baseline",
|
|
visibility = ["//visibility:private"],
|
|
deps = ["//go/extractor/configurebaseline"],
|
|
)
|
|
|
|
codeql_go_binary(
|
|
name = "go-configure-baseline",
|
|
embed = [":go-configure-baseline_lib"],
|
|
visibility = ["//visibility:public"],
|
|
)
|