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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ bazel-bin
bazel-out
bazel-testlogs
bazel-code
bazel-*
2 changes: 2 additions & 0 deletions crates/code-api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -63,4 +64,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-commands/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -49,4 +50,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ sh_test(
"test",
],
local = 1,
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -55,4 +56,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-embeddings/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -54,4 +55,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-events/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -54,4 +55,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
1 change: 1 addition & 0 deletions crates/code-harness/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-incremental/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -49,4 +50,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-integrations/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -49,4 +50,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-memory/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -54,4 +55,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-orchestrator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -54,4 +55,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-plugins/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -59,4 +60,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
1 change: 1 addition & 0 deletions crates/code-providers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
1 change: 1 addition & 0 deletions crates/code-repo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down
2 changes: 2 additions & 0 deletions crates/code-sandbox/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -54,4 +55,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
1 change: 1 addition & 0 deletions crates/code-server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
1 change: 1 addition & 0 deletions crates/code-store/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-telemetry/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -49,4 +50,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
1 change: 1 addition & 0 deletions crates/code-tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-training/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -49,4 +50,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-types/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -49,4 +50,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
2 changes: 2 additions & 0 deletions crates/code-webhooks/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sh_test(
"rust",
"test",
],
timeout = "eternal",
)

sh_test(
Expand Down Expand Up @@ -49,4 +50,5 @@ sh_test(
"lint",
"rust",
],
timeout = "eternal",
)
1 change: 1 addition & 0 deletions examples/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ filegroup(

sh_test(
name = "core_config_example",
timeout = "eternal",
srcs = ["//tools:crate.sh"],
data = ["//:cargo_workspace"],
args = [
Expand Down
6 changes: 3 additions & 3 deletions extensions/slack-agent/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sh_test(
name = "lint",
size = "small",
srcs = ["//tools:extension.sh"],
data = [":srcs", ":config_srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore"],
data = [":srcs", ":config_srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "//tools:user_env.sh"],
args = [
"extensions/slack-agent",
"lint",
Expand All @@ -47,7 +47,7 @@ sh_test(
sh_test(
name = "build",
srcs = ["//tools:extension.sh"],
data = [":srcs", ":config_srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore"],
data = [":srcs", ":config_srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "//tools:user_env.sh"],
args = [
"extensions/slack-agent",
"build",
Expand All @@ -61,7 +61,7 @@ sh_test(
sh_test(
name = "test",
srcs = ["//tools:extension.sh"],
data = [":srcs", ":config_srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore"],
data = [":srcs", ":config_srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "//tools:user_env.sh"],
args = [
"extensions/slack-agent",
"test",
Expand Down
4 changes: 2 additions & 2 deletions extensions/vscode/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sh_test(
name = "lint",
size = "small",
srcs = ["//tools:extension.sh"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "package.json"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "package.json", "//tools:user_env.sh"],
args = [
"extensions/vscode",
"lint",
Expand All @@ -30,7 +30,7 @@ sh_test(
sh_test(
name = "build",
srcs = ["//tools:extension.sh"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "package.json"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "package.json", "//tools:user_env.sh"],
args = [
"extensions/vscode",
"build",
Expand Down
4 changes: 2 additions & 2 deletions extensions/zed/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sh_test(
name = "lint",
size = "small",
srcs = ["//tools:extension.sh"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "package.json"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "package.json", "//tools:user_env.sh"],
args = [
"extensions/zed",
"lint",
Expand All @@ -30,7 +30,7 @@ sh_test(
sh_test(
name = "build",
srcs = ["//tools:extension.sh"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "package.json"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "package.json", "//tools:user_env.sh"],
args = [
"extensions/zed",
"build",
Expand Down
9 changes: 4 additions & 5 deletions npm/code-cli/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ filegroup(

sh_test(
name = "test",
local = True,
srcs = ["//tools:cli.sh"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "//tools:user_env.sh"],
args = ["test"],
tags = [
"test",
Expand All @@ -32,7 +31,7 @@ sh_test(
name = "lint",
size = "small",
srcs = ["//tools:cli.sh"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore"],
data = [":srcs", "//:biome.json", "//:ultracite.json", "//:.gitignore", "//tools:user_env.sh"],
args = ["lint"],
tags = [
"lint",
Expand All @@ -43,9 +42,9 @@ sh_test(
sh_test(
name = "build",
local = True,
timeout = "long",
timeout = "eternal",
srcs = ["//tools:cli.sh"],
data = [":srcs", "//:cargo_workspace", "//:biome.json", "//:ultracite.json", "//:.gitignore"],
data = [":srcs", "//:cargo_workspace", "//:biome.json", "//:ultracite.json", "//:.gitignore", "//tools:user_env.sh"],
args = ["build"],
tags = [
"build",
Expand Down
11 changes: 10 additions & 1 deletion npm/code-cli/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,16 @@ case "$OS/$ARCH" in
*) echo "ERROR: unsupported build platform: $OS/$ARCH" >&2; exit 1 ;;
esac

SRC="$REPO_ROOT/target/release/code"
# Respect CARGO_TARGET_DIR (set by tools/user_env.sh under Bazel sandboxes)
# so the binary is found where cargo actually wrote it. Resolve relative
# values against REPO_ROOT (cargo's CWD during the build) so the cp finds
# the same directory cargo wrote to.
if [[ -n "${CARGO_TARGET_DIR:-}" && "${CARGO_TARGET_DIR:-}" != /* ]]; then
TARGET_DIR_CARGO="$REPO_ROOT/${CARGO_TARGET_DIR}"
else
TARGET_DIR_CARGO="${CARGO_TARGET_DIR:-$REPO_ROOT/target}"
fi
SRC="$TARGET_DIR_CARGO/release/code"
DEST="$PKG_ROOT/vendor/$TARGET_DIR/bin/frontal-code"
mkdir -p "$(dirname "$DEST")"
cp "$SRC" "$DEST"
Expand Down
Loading
Loading