Skip to content

Commit

Permalink
Migrate to Bazel 8 and Bzlmod (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy authored Dec 11, 2024
1 parent 0e27f49 commit 033f41d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.1
8.0.0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/production
*.swp
.DS_Store
MODULE.bazel.lock
19 changes: 19 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
module(name = "build_bazel_blog")

bazel_dep(name = "rules_pkg", version = "1.0.1")

http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "bazel_website",
urls = [
"https://github.com/bazelbuild/bazel-website/archive/c174fa288aa079b68416d2ce2cc97268fa172f42.tar.gz"
],
sha256 = "a5f531dd1d62e6947dcfc279656ffc2fdf6f447c163914c5eabf7961b4cb6eb4",
strip_prefix = "bazel-website-c174fa288aa079b68416d2ce2cc97268fa172f42",
# TODO(https://github.com/bazelbuild/bazel/issues/10793)
# - Export files from bazel-website's BUILD, instead of doing it here.
# - Share more common stylesheets, like footer and navbar.
build_file_content = """
exports_files([\"_sass/style.scss\"])
""",
)
28 changes: 0 additions & 28 deletions WORKSPACE

This file was deleted.

0 comments on commit 033f41d

Please sign in to comment.