Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
common --enable_bzlmod
common --registry=https://raw.githubusercontent.com/tinyland-inc/bazel-registry/main

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Mutable registry URL branch reference

The registry URL pins to the main branch, so any push to main in tinyland-inc/bazel-registry immediately changes which module metadata Bazel fetches — breaking reproducibility and creating a supply-chain window. Pinning to a commit SHA or a tag makes the lockstep explicit and auditable.

Suggested change
common --registry=https://raw.githubusercontent.com/tinyland-inc/bazel-registry/main
common --registry=https://raw.githubusercontent.com/tinyland-inc/bazel-registry/<commit-sha-or-tag>

common --registry=https://bcr.bazel.build

build --jobs=auto
build --worker_sandboxing
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
packages: read
jobs:
package:
uses: tinyland-inc/ci-templates/.github/workflows/js-bazel-package.yml@21e0093a7586931ee69d716387e00556c6da7738
uses: tinyland-inc/ci-templates/.github/workflows/js-bazel-package.yml@693ab956344da932b8a84798dea1385cf517efd7
with:
runner_mode: shared
shared_runner_labels_json: ${{ vars.PRIMARY_LINUX_RUNNER_LABELS_JSON }}
Expand Down
6 changes: 2 additions & 4 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ BUILD.bazel for @tummycrypt/tinyland-activitypub.

Dual-mode build: works with both pnpm (standalone) and Bazel (CI/production).
Standalone: cd packages/tinyland-activitypub && pnpm build
Monorepo: bazel build //packages/tinyland-activitypub/...
"""

load("@aspect_rules_js//npm:defs.bzl", "npm_package")
load("@aspect_rules_ts//ts:defs.bzl", "ts_project")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@npm//:vitest/package_json.bzl", vitest_bin = "bin")
load("@tummycrypt_tinyland_activitypub_npm//:defs.bzl", "npm_link_all_packages")
load("@tummycrypt_tinyland_activitypub_npm//:vitest/package_json.bzl", vitest_bin = "bin")

npm_link_all_packages(name = "node_modules")

Expand All @@ -34,7 +33,6 @@ ts_project(
deps = [
":node_modules",
":node_modules/@types/node",
"//packages/tinyland-content-types:tinyland_content_types",
],
visibility = ["//visibility:public"],
)
Expand Down
6 changes: 3 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_nodejs", version = "6.7.3")
# Inter-module dependencies
bazel_dep(name = "tummycrypt_tinyland_content_types", version = "0.2.2")
bazel_dep(name = "tummycrypt_tinyland_content_types", version = "0.2.3")

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "22.13.1")
Expand All @@ -25,14 +25,14 @@ use_repo(pnpm, "pnpm")

npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
npm.npm_translate_lock(
name = "npm",
name = "tummycrypt_tinyland_activitypub_npm",
data = [
"//:package.json",
"//:pnpm-workspace.yaml",
],
pnpm_lock = "//:pnpm-lock.yaml",
)
use_repo(npm, "npm")
use_repo(npm, "tummycrypt_tinyland_activitypub_npm")

rules_ts_ext = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext")
rules_ts_ext.deps(ts_version = "5.9.3")
Expand Down
Loading