Skip to content

Commit

Permalink
fix bzlmod
Browse files Browse the repository at this point in the history
  • Loading branch information
discentem committed Jan 17, 2025
1 parent 5717570 commit e817f69
Show file tree
Hide file tree
Showing 15 changed files with 228 additions and 1,723 deletions.
1 change: 0 additions & 1 deletion .bazelrc

This file was deleted.

13 changes: 1 addition & 12 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@gazelle//:def.bzl", "gazelle")

# gazelle:prefix github.com/grahamgilbert/crypt
gazelle(name = "gazelle")

gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
],
command = "update-repos",
)
12 changes: 6 additions & 6 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
bazel_dep(name = "rules_go", version = "0.52.0")
bazel_dep(name = "gazelle", version = "0.41.0")

go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(go_deps, "com_github_groob_plist", "com_github_hashicorp_go_version", "com_github_pkg_errors", "com_github_stretchr_testify")
Loading

0 comments on commit e817f69

Please sign in to comment.