Skip to content

Commit 1583d95

Browse files
committed
Fix handling of osiris with bzlmod
1 parent de489aa commit 1583d95

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

MODULE.bazel

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ erlang_package.git(
134134
patch_cmds = ["""
135135
VERSION=$(git rev-parse HEAD)
136136
echo "Injecting ${VERSION} into Makefile..."
137-
sed -i"_orig" -E '/PROJECT_VERSION/ s/[0-9]+\\.[0-9]+\\.[0-9]+/${VERSION}/' src/osiris.app.src
137+
sed -i"_orig" -E '/PROJECT_VERSION/ s/[0-9]+\\.[0-9]+\\.[0-9]+/'${VERSION}'/' Makefile
138+
echo "Injecting ${VERSION} into BUILD.bazel..."
139+
sed -i"_orig" -E '/VERSION/ s/[0-9]+\\.[0-9]+\\.[0-9]+/'${VERSION}'/' BUILD.bazel
138140
"""],
139141
)
140142

@@ -262,8 +264,10 @@ use_repo(
262264
"jsx",
263265
"meck",
264266
"observer_cli",
267+
"osiris",
265268
"prometheus",
266269
"proper",
270+
"ra",
267271
"ranch",
268272
"recon",
269273
"redbug",

workspace_helpers.bzl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@ erlang_app(
161161
name = "osiris",
162162
branch = "main",
163163
remote = "https://github.com/rabbitmq/osiris.git",
164-
repo_mapping = {
165-
"@gen_batch_server": "@rules_erlang.2.5.2.erlang_package.gen_batch_server",
166-
"@seshat": "@rules_erlang.2.5.2.erlang_package.seshat",
167-
},
168164
)
169165

170166
hex_pm_erlang_app(

0 commit comments

Comments
 (0)