Skip to content

Commit

Permalink
chore: update rules_go and gazelle version to fix bazel build (#756)
Browse files Browse the repository at this point in the history
* chore: update rules_go and gazelle version to fix bazel build

* chore: fix source file list in ast directory (ref: #746)

* chore: fix dependency list in formatter directory
  • Loading branch information
itchyny authored Jun 10, 2024
1 parent 02bcb68 commit 4635098
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module(name = "jsonnet_go", version = "0.0.0")

bazel_dep(name = "gazelle", version = "0.30.0", repo_name = "bazel_gazelle")
bazel_dep(name = "gazelle", version = "0.37.0", repo_name = "bazel_gazelle")
bazel_dep(name = "jsonnet", version = "0.20.0", repo_name = "cpp_jsonnet")
bazel_dep(name = "rules_go", version = "0.39.1", repo_name = "io_bazel_rules_go")
bazel_dep(name = "rules_go", version = "0.48.0", repo_name = "io_bazel_rules_go")

go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "@jsonnet_go//:go.mod")
Expand Down
2 changes: 1 addition & 1 deletion ast/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ go_library(

go_test(
name = "go_default_test",
srcs = ["util_test.go"],
srcs = ["identifier_test.go"],
embed = [":go_default_library"],
)
12 changes: 6 additions & 6 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ CPP_JSONNET_GITHASH = "f45e01d632b29e4c0757ec7ba188ce759298e6d3"
def jsonnet_go_repositories():
http_archive(
name = "io_bazel_rules_go",
sha256 = "6b65cb7917b4d1709f9410ffe00ecf3e160edf674b78c54a894471320862184f",
sha256 = "33acc4ae0f70502db4b893c9fc1dd7a9bf998c23e7ff2c4517741d4049a976f8",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.34.0/rules_go-v0.39.0.zip",
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.48.0/rules_go-v0.48.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.48.0/rules_go-v0.48.0.zip",
],
)

http_archive(
name = "bazel_gazelle",
sha256 = "501deb3d5695ab658e82f6f6f549ba681ea3ca2a5fb7911154b5aa45596183fa",
sha256 = "d76bf7a60fd8b050444090dfa2837a4eaf9829e1165618ee35dceca5cbdf58d5",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.26.0/bazel-gazelle-v0.26.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.26.0/bazel-gazelle-v0.26.0.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.37.0/bazel-gazelle-v0.37.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.37.0/bazel-gazelle-v0.37.0.tar.gz",
],
)
http_archive(
Expand Down
6 changes: 5 additions & 1 deletion formatter/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ go_library(
srcs = ["formatter.go"],
importpath = "github.com/google/go-jsonnet/formatter",
visibility = ["//visibility:public"],
deps = ["//internal/formatter:go_default_library"],
deps = [
"//ast:go_default_library",
"//internal/parser:go_default_library",
"//internal/formatter:go_default_library",
],
)

0 comments on commit 4635098

Please sign in to comment.