diff --git a/MODULE.bazel b/MODULE.bazel index 2e352ca..7048166 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -10,6 +10,8 @@ bazel_dep(name = "rules_pkg", version = "0.7.0") # For VS Code autocompletion: # https://github.com/hedronvision/bazel-compile-commands-extractor#usage # +# Run bazel run @hedron_compile_commands//:refresh_all to get autocomplete +# working in VS Code and other editors. # Not currently working due to https://github.com/hedronvision/bazel-compile-commands-extractor/issues/199 bazel_dep(name = "hedron_compile_commands", dev_dependency = True) git_override( diff --git a/WORKSPACE b/WORKSPACE deleted file mode 100644 index 944d8eb..0000000 --- a/WORKSPACE +++ /dev/null @@ -1,33 +0,0 @@ -workspace(name = "com_google_protobuf_javascript") - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "com_google_protobuf", - strip_prefix = "protobuf-21.3", - urls = ["https://github.com/protocolbuffers/protobuf/archive/refs/tags/v21.3.zip"], -) - -load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") - -protobuf_deps() - -load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") -rules_pkg_dependencies() - -# Hedron's Compile Commands Extractor for Bazel -# https://github.com/hedronvision/bazel-compile-commands-extractor -# -# Run bazel run @hedron_compile_commands//:refresh_all to get autocomplete -# working in VS Code and other editors. -http_archive( - name = "hedron_compile_commands", - - # Replace the commit hash in both places (below) with the latest, rather than using the stale one here. - # Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README). - url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/ed994039a951b736091776d677f324b3903ef939.tar.gz", - strip_prefix = "bazel-compile-commands-extractor-ed994039a951b736091776d677f324b3903ef939", - # When you first run this tool, it'll recommend a sha256 hash to put here with a message like: "DEBUG: Rule 'hedron_compile_commands' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = ..." -) -load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup") -hedron_compile_commands_setup() diff --git a/WORKSPACE.bzlmod b/WORKSPACE.bzlmod deleted file mode 100644 index b31eece..0000000 --- a/WORKSPACE.bzlmod +++ /dev/null @@ -1,2 +0,0 @@ -# When Bzlmod is enabled, this file replaces the content of the original WORKSPACE and -# makes sure no WORKSPACE prefix or suffix are added when Bzlmod is enabled. \ No newline at end of file