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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 0 additions & 14 deletions .bcr/families/fortran/metadata.template.json

This file was deleted.

15 changes: 0 additions & 15 deletions .bcr/families/fortran/presubmit.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .bcr/families/fortran/source.template.json

This file was deleted.

14 changes: 0 additions & 14 deletions .bcr/families/julia/metadata.template.json

This file was deleted.

15 changes: 0 additions & 15 deletions .bcr/families/julia/presubmit.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .bcr/families/julia/source.template.json

This file was deleted.

14 changes: 0 additions & 14 deletions .bcr/families/zig/metadata.template.json

This file was deleted.

15 changes: 0 additions & 15 deletions .bcr/families/zig/presubmit.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .bcr/families/zig/source.template.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ jobs:
# shellcheck disable=SC2086
set -- $BAZEL_CONFIG $BB_ARGS
# shellcheck disable=SC2086
bazel test --noshow_progress --nocache_test_results --test_output=all "$@" //tools/testing:preflight_smoke_test //cli/env:bootstrap_test //cc/tests/fixtures/hello:hello_test @rules_dx_powershell//tests/fixtures/hello:hello_test @rules_dx_zig//zig/tests/fixtures/zig-app/... @rules_dx_dart//dart/tests/fixtures/dart-app/... @rules_dx_dart//dart/tests/runtime:all //dart/tools:all @rules_dx_zig//zig/tests/fixtures/hello:all @rules_dx_julia//julia/tests/fixtures/hello:all @rules_dx_julia//julia/tests/fixtures/julia-app/... //julia/tools/... $QUALITY_TARGETS
bazel test --noshow_progress --nocache_test_results --test_output=all "$@" //tools/testing:preflight_smoke_test //cli/env:bootstrap_test //cc/tests/fixtures/hello:hello_test @rules_dx_powershell//tests/fixtures/hello:hello_test //zig/tests/fixtures/zig-app/... @rules_dx_dart//dart/tests/fixtures/dart-app/... @rules_dx_dart//dart/tests/runtime:all //dart/tools:all //zig/tests/fixtures/hello:all //julia/tests/fixtures/hello:all //julia/tests/fixtures/julia-app/... //julia/private/tools/... $QUALITY_TARGETS
- name: Run the PyPI probe verification
run: |
# shellcheck disable=SC2086
Expand Down
12 changes: 4 additions & 8 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,13 @@ exports_files([
"MODULE.bazel",
"MODULE.bazel.lock",
"README.md",
"d/README.md",
"fortran/README.md",
"go/README.md",
"lua/README.md",
"ocaml/README.md",
"perl/README.md",
"php/README.md",
"powershell/README.md",
"julia/README.md",
"swift/README.md",
"zig/README.md",
"cargo-bazel-lock.json",
"package.json",
"pnpm-lock.yaml",
Expand Down Expand Up @@ -254,8 +250,8 @@ real_source_target(
"CONTRIBUTING.md",
"README.md",
"SECURITY.md",
"d/README.md",
"fortran/README.md",
"//d:README.md",
"//fortran:README.md",
"go/README.md",
"//java:README.md",
"//kotlin:README.md",
Expand All @@ -266,10 +262,10 @@ real_source_target(
"//patches:README.md",
"powershell/README.md",
"//python:README.md",
"julia/README.md",
"//julia:README.md",
"//scala:README.md",
"swift/README.md",
"zig/README.md",
"//zig:README.md",
"CLAUDE.md",
"RELEASING.md",
"containers/README.md",
Expand Down
82 changes: 45 additions & 37 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,6 @@ local_path_override(
path = "families/generation",
)

bazel_dep(name = "rules_dx_fortran", version = "0.0.0", dev_dependency = True)
local_path_override(
module_name = "rules_dx_fortran",
path = "families/fortran",
)

bazel_dep(name = "rules_dx_haskell", version = "0.0.0", dev_dependency = True)
local_path_override(
module_name = "rules_dx_haskell",
Expand Down Expand Up @@ -339,24 +333,12 @@ local_path_override(
path = "families/ruby",
)

bazel_dep(name = "rules_dx_zig", version = "0.0.0", dev_dependency = True)
local_path_override(
module_name = "rules_dx_zig",
path = "families/zig",
)

bazel_dep(name = "rules_dx_dart", version = "0.0.0", dev_dependency = True)
local_path_override(
module_name = "rules_dx_dart",
path = "families/dart",
)

bazel_dep(name = "rules_dx_julia", version = "0.0.0", dev_dependency = True)
local_path_override(
module_name = "rules_dx_julia",
path = "families/julia",
)

bazel_dep(name = "rules_dx_lua", version = "0.0.0", dev_dependency = True)
local_path_override(
module_name = "rules_dx_lua",
Expand Down Expand Up @@ -1069,74 +1051,84 @@ single_version_override(
version = "0.8.0",
)

julia = use_extension("@rules_julia//julia:extensions.bzl", "julia")
julia.toolchain(version = "1.12.5")

julia_pkg_dev = use_extension("@rules_julia//julia/pkg:extensions.bzl", "pkg", dev_dependency = True)
julia_pkg_dev.from_manifest(
name = "julia_app_pkgs",
lockfile = "//julia/tests/fixtures/julia-app/third_party:Manifest.bazel.json",
)
use_repo(julia_pkg_dev, julia_app_deps = "julia_app_pkgs")

julia_pkg = use_extension("@rules_julia//julia/pkg:extensions.bzl", "pkg")
julia_pkg.from_manifest(
name = "dx_julia_coverage",
lockfile = "//julia/coverage:Manifest.bazel.json",
lockfile = "//julia/private/coverage:Manifest.bazel.json",
)
julia_pkg.from_manifest(
name = "dx_julia_docs",
lockfile = "//julia/tools/docs:Manifest.bazel.json",
lockfile = "//julia/private/tools/docs:Manifest.bazel.json",
)
julia_pkg.from_manifest(
name = "dx_julia_format",
lockfile = "//julia/tools:Manifest.bazel.json",
lockfile = "//julia/private/tools:Manifest.bazel.json",
)
julia_pkg.from_manifest(
name = "dx_julia_jet",
lockfile = "//julia/tools/jet:Manifest.bazel.json",
lockfile = "//julia/private/tools/jet:Manifest.bazel.json",
)
julia_pkg.from_manifest(
name = "dx_julia_lint",
lockfile = "//julia/tools/lint:Manifest.bazel.json",
lockfile = "//julia/private/tools/lint:Manifest.bazel.json",
)
julia_pkg.pkg_annotation(
dep = "Preferences",
patch_args = ["-p1"],
patches = ["//julia/tools/patches:Preferences.patch"],
patches = ["//julia/private/tools/patches:Preferences.patch"],
)
julia_pkg.pkg_annotation(
dep = "Documenter",
patch_args = ["-p1"],
patches = ["//julia/tools/docs/patches:Documenter.patch"],
patches = ["//julia/private/tools/docs/patches:Documenter.patch"],
)
julia_pkg.pkg_annotation(
dep = "StructUtils",
patch_args = ["-p1"],
patches = ["//julia/tools/docs/patches:StructUtils.patch"],
patches = ["//julia/private/tools/docs/patches:StructUtils.patch"],
)
julia_pkg.pkg_annotation(
dep = "JET",
patch_args = ["-p1"],
patches = [
"//julia/tools/jet/patches:JET.patch",
"//julia/tools/jet/patches:JET_docs.patch",
"//julia/private/tools/jet/patches:JET.patch",
"//julia/private/tools/jet/patches:JET_docs.patch",
],
)
julia_pkg.pkg_annotation(
dep = "MacroTools",
patch_args = ["-p1"],
patches = ["//julia/tools/jet/patches:MacroTools.patch"],
patches = ["//julia/private/tools/jet/patches:MacroTools.patch"],
)
julia_pkg.pkg_annotation(
dep = "ExceptionUnwrapping",
patch_args = ["-p1"],
patches = ["//julia/tools/lint/patches:ExceptionUnwrapping.patch"],
patches = ["//julia/private/tools/lint/patches:ExceptionUnwrapping.patch"],
)
julia_pkg.pkg_annotation(
dep = "CommonMark@1.0.4",
patch_args = ["-p1"],
patches = ["//julia/tools/lint/patches:CommonMark.patch"],
patches = ["//julia/private/tools/lint/patches:CommonMark.patch"],
)
julia_pkg.pkg_annotation(
dep = "JuliaWorkspaces",
patch_args = ["-p1"],
patches = ["//julia/tools/lint/patches:JuliaWorkspaces.patch"],
patches = ["//julia/private/tools/lint/patches:JuliaWorkspaces.patch"],
)
julia_pkg.pkg_annotation(
dep = "JSON",
patch_args = ["-p1"],
patches = ["//julia/tools/lint/patches:JSON.patch"],
patches = ["//julia/private/tools/lint/patches:JSON.patch"],
)
use_repo(julia_pkg, "dx_julia_coverage", "dx_julia_docs", "dx_julia_format", "dx_julia_jet", "dx_julia_lint")

Expand Down Expand Up @@ -1254,8 +1246,24 @@ ocaml.annotation(
)
use_repo(ocaml, "dx_ocaml_dune", "dx_ocaml_toolchains", "ocaml_app", "ocaml_fuzz", "rules_ocaml")

fortran = use_extension("//fortran/toolchain:extensions.bzl", "fortran")
use_repo(fortran, "rules_fortran")
fortran = use_extension("//fortran:extensions.bzl", "fortran")
use_repo(fortran, "dx_fortran_toolchains", "rules_fortran")

register_toolchains("@dx_fortran_toolchains//:all")

zig = use_extension("@rules_zig//zig:extensions.bzl", "zig")
zig.toolchain(zig_version = "0.17.0")

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

_zig_http_archive(
name = "zig_app_xxhash",
build_file = "//zig/tests/fixtures/zig-app:xxhash.BUILD.bazel",
dev_dependency = True,
sha256 = "aae608dfe8213dfd05d909a57718ef82f30722c392344583d3f39050c7f29a80",
strip_prefix = "xxHash-0.8.3",
urls = ["https://github.com/Cyan4973/xxHash/archive/refs/tags/v0.8.3.tar.gz"],
)

# floor: equals tested
bazel_dep(name = "lua", version = "5.4.6.bcr.1")
Expand Down Expand Up @@ -1319,12 +1327,12 @@ haskell.lock(
)
use_repo(haskell, "dx_ghc_windows_x86_64", "dx_haskell_toolchains", "haskell_app_hackage", "haskell_bench_hackage", "haskell_exe_hackage", "haskell_hlint_hackage", "haskell_nixfmt_hackage", "haskell_ormolu_hackage", "haskell_weeder_hackage", "rules_haskell")

d = use_extension("//d/toolchain:extensions.bzl", "d")
d = use_extension("//d:extensions.bzl", "d")
use_repo(d, "dx_d_containers", "dx_d_dcd", "dx_d_inifiled", "dx_d_ldc_linux_x86_64", "dx_d_ldc_linux_arm64", "dx_d_ldc_macos_arm64", "dx_d_ldc_windows_x86_64", "dx_d_libddoc", "dx_d_libdparse", "dx_d_toolchains", "rules_d")

register_toolchains("@dx_d_toolchains//:all")

dub = use_extension("//d/dub:extensions.bzl", "dub", dev_dependency = True)
dub = use_extension("//d:extensions.bzl", "dub", dev_dependency = True)
dub.lock(
name = "dub_fixture",
digests = "//d/tests/fixtures/dub:dub.digests.json",
Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions cli/adopt/src/dependency_sets_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ fn dub_workspace(digest_version: &str) -> (dx_test_scratch::TempDir, ResolvedSet

#[test]
fn dub_locks_become_dub_sets() {
let module = "dub = use_extension(\"@rules_dx//d/dub:extensions.bzl\", \"dub\")\ndub.lock(name = \"dub_deps\", lock = \"//d:dub.selections.json\", digests = \"//d:dub.digests.json\")\n";
let module = "dub = use_extension(\"@rules_dx//d:extensions.bzl\", \"dub\")\ndub.lock(name = \"dub_deps\", lock = \"//d:dub.selections.json\", digests = \"//d:dub.digests.json\")\n";
let read = |path: &str| match path {
"d/dub.sdl" => Ok(String::new()),
_ => Err("none".to_owned()),
Expand All @@ -374,7 +374,7 @@ fn dub_locks_become_dub_sets() {

#[test]
fn fpm_locks_become_fpm_sets() {
let module = "fortran = use_extension(\"@rules_dx//fortran/toolchain:extensions.bzl\", \"fortran\")\nfortran.fpm(name = \"fpm_deps\", lock = \"//f:fpm.lock\")\n";
let module = "fortran = use_extension(\"@rules_dx//fortran:extensions.bzl\", \"fortran\")\nfortran.fpm(name = \"fpm_deps\", lock = \"//f:fpm.lock\")\n";
let read = |_: &str| Err("none".to_owned());
let registry = discover(module, &read)
.expect("discovers")
Expand Down Expand Up @@ -421,7 +421,7 @@ fn ansible_and_bicep_tags_become_sets() {

#[test]
fn zig_locks_become_zig_sets() {
let module = "zig = use_extension(\"@rules_dx//zig/deps:extensions.bzl\", \"zig_deps\")\nzig.lock(name = \"zig_pkgs\", lock = \"//app:build.zig.zon\", digests = \"//app:zig.digests.json\")\n";
let module = "zig = use_extension(\"@rules_dx//zig:extensions.bzl\", \"zig_deps\")\nzig.lock(name = \"zig_pkgs\", lock = \"//app:build.zig.zon\", digests = \"//app:zig.digests.json\")\n";
let read = |_: &str| Err("none".to_owned());
let registry = discover(module, &read)
.expect("discovers")
Expand Down
2 changes: 1 addition & 1 deletion cli/cli/src/exec/unsupported.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"title": "Haskell"
},
"//julia/rules:unsupported": {
"//julia/private:unsupported": {
"platforms": {
"windows_arm64": "julialang.org and rules_julia 0.8.0 ship no Windows arm64 Julia build"
},
Expand Down
Loading
Loading