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
38 changes: 38 additions & 0 deletions modules/rules_gleam/0.1.12/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module(
name = "rules_gleam",
version = "0.1.12",
)

bazel_dep(name = "rules_go", version = "0.57.0")
bazel_dep(name = "gazelle", version = "0.45.0")
bazel_dep(name = "bazel_skylib", version = "1.8.1")
bazel_dep(name = "rules_erlang", version = "3.16.0")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "bazel_features", version = "1.35.0")

# Download a suitable Go SDK.
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.25.1")
use_repo(go_sdk, "go_host_compatible_sdk_label")

go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(
fail_on_version_conflict = False,
go_mod = "//:go.mod",
)
use_repo(go_deps, "com_github_bazelbuild_buildtools", "com_github_bmatcuk_doublestar_v4", "com_github_burntsushi_toml", "com_github_google_go_cmp", "com_github_kr_pretty", "com_github_kr_text", "com_github_lithammer_dedent", "com_github_pmezard_go_difflib", "com_github_rogpeppe_go_internal", "org_golang_x_mod", "org_golang_x_sync", "org_golang_x_sys", "org_golang_x_tools_go_vcs")

gleam = use_extension("//:extensions.bzl", "gleam")
gleam.deps(gleam_toml = "//:gleam/gleeunit/gleam.toml")

# Registers the default toolchain to be the latest
# User of rules_gleam, can customize the default tool chains using the same extension tag:
gleam.toolchain(version = "latest")

register_toolchains("@gleam_toolchains//:all")

use_repo(gleam, "gleam_compiler_aarch64_apple_darwin", "gleam_compiler_aarch64_pc_windows_msvc", "gleam_compiler_aarch64_unknown_linux_musl", "gleam_compiler_x86_64_apple_darwin", "gleam_compiler_x86_64_pc_windows_msvc", "gleam_compiler_x86_64_unknown_linux_musl", "gleam_hex_repositories_config", "gleam_toolchains", "hex_gleam_stdlib")

# Internal tools
gleam_tools = use_extension("//internal/tools:extensions.bzl", "tools")
use_repo(gleam_tools, "rules_gleam_go_repository_cache", "rules_gleam_internal_tools")
17 changes: 17 additions & 0 deletions modules/rules_gleam/0.1.12/attestations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"mediaType": "application/vnd.build.bazel.registry.attestation+json;version=1.0.0",
"attestations": {
"source.json": {
"url": "https://github.com/iocat/rules_gleam/releases/download/v0.1.12/source.json.intoto.jsonl",
"integrity": "sha256-Hwf8xA97PPOApXoeS471x5CM/5TyJWjj/DRWnycpv/I="
},
"MODULE.bazel": {
"url": "https://github.com/iocat/rules_gleam/releases/download/v0.1.12/MODULE.bazel.intoto.jsonl",
"integrity": "sha256-tJsZ0pdpMlGrrbEkeZjfT1J/Pp1EriWNnJtI7oRoOIo="
},
"rules_gleam-v0.1.12.tar.gz": {
"url": "https://github.com/iocat/rules_gleam/releases/download/v0.1.12/rules_gleam-v0.1.12.tar.gz.intoto.jsonl",
"integrity": "sha256-EW3CEm+zVC2fr4sk3+ymX6cnMofw3XjCaz922d/rKm0="
}
}
}
12 changes: 12 additions & 0 deletions modules/rules_gleam/0.1.12/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
===================================================================
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -1,7 +1,7 @@
module(
name = "rules_gleam",
- version = "0.0.0",
+ version = "0.1.12",
)

bazel_dep(name = "rules_go", version = "0.57.0")
bazel_dep(name = "gazelle", version = "0.45.0")
25 changes: 25 additions & 0 deletions modules/rules_gleam/0.1.12/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
bcr_test_module:
module_path: "examples/basic"
matrix:
bazel: [8.x]
tasks:
ubuntu2204:
environment:
PATH: $HOME/.local/share/mise/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
shell_commands:
- curl https://mise.run | sh
- ~/.local/bin/mise --version
- echo 'eval "$(~/.local/bin/mise activate --shims bash)"' >> ~/.bashrc
- . ~/.bashrc
- mise use -g erlang@28
name: "Build/test module on Ubuntu"
platform: ubuntu2204
bazel: ${{ bazel }}
build_targets:
- "..."
test_targets:
- "..."

incompatible_flags:
# We are having non-hermetic builds
"--incompatible_strict_action_env=": []
9 changes: 9 additions & 0 deletions modules/rules_gleam/0.1.12/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-ALOzsm2zOE+PuB2cDqrj7RvLIIxfBwMQLr0XECmwPbQ=",
"strip_prefix": "rules_gleam-0.1.12",
"url": "https://github.com/iocat/rules_gleam/releases/download/v0.1.12/rules_gleam-v0.1.12.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-FxhG/rVl7QsieXRHQp/H3XNfvnHBe1Qpw0IizGIpljQ="
},
"patch_strip": 1
}
18 changes: 18 additions & 0 deletions modules/rules_gleam/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"homepage": "https://github.com/iocat/rules_gleam",
"maintainers": [
{
"name": "Thanh Ngo",
"email": "[email protected]",
"github": "iocat",
"github_user_id": 11292829
}
],
"repository": [
"github:iocat/rules_gleam"
],
"versions": [
"0.1.12"
],
"yanked_versions": {}
}
Loading