mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: moved install to a separate package
When importing the workspace from semmle-code, we do not need nor want to instantiate `@util`, so that must be in a separate bazel package.
This commit is contained in:
@@ -27,19 +27,6 @@ http_archive(
|
||||
],
|
||||
)
|
||||
|
||||
http_archive(
|
||||
name = "bazel_skylib",
|
||||
sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d",
|
||||
urls = [
|
||||
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
|
||||
],
|
||||
)
|
||||
|
||||
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
|
||||
|
||||
bazel_skylib_workspace()
|
||||
|
||||
load("@ql//:defs.bzl", "ql_utils")
|
||||
|
||||
ql_utils(name = "utils")
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
load("@rules_pkg//:mappings.bzl", "pkg_attributes", "pkg_filegroup", "pkg_files")
|
||||
load("@rules_pkg//:install.bzl", "pkg_install")
|
||||
load("@ql//:defs.bzl", "codeql_platform")
|
||||
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
|
||||
load("@utils//:paths.bzl", "source_dir")
|
||||
|
||||
pkg_files(
|
||||
name = "dbscheme",
|
||||
@@ -55,12 +52,3 @@ pkg_filegroup(
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
pkg_install(
|
||||
name = "install",
|
||||
srcs = [":extractor-pack"],
|
||||
args = [
|
||||
"--destdir",
|
||||
source_dir() + "/extractor_pack",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -4,5 +4,5 @@ The Swift codeql package is an experimental and unsupported work in progress.
|
||||
|
||||
## Usage
|
||||
|
||||
Run `bazel run //swift:install-extractor`, which will install `swift/extractor_pack`. Using `--search-path=swift` will
|
||||
then pick up the Swift extractor.
|
||||
Run `bazel run //swift/install`, which will install `swift/extractor_pack`. Using `--search-path=swift` will then pick
|
||||
up the Swift extractor.
|
||||
|
||||
11
swift/install/BUILD.bazel
Normal file
11
swift/install/BUILD.bazel
Normal file
@@ -0,0 +1,11 @@
|
||||
load("@utils//:paths.bzl", "source_dir")
|
||||
load("@rules_pkg//:install.bzl", "pkg_install")
|
||||
|
||||
pkg_install(
|
||||
name = "install",
|
||||
srcs = ["//swift:extractor-pack"],
|
||||
args = [
|
||||
"--destdir",
|
||||
source_dir() + "/../extractor_pack",
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user