Fix handling of osiris with bzlmod

This commit is contained in:
Philip Kuryloski 2022-04-29 10:04:10 +02:00
parent de489aa690
commit 1583d95a9d
2 changed files with 5 additions and 5 deletions

View File

@ -134,7 +134,9 @@ erlang_package.git(
patch_cmds = [""" patch_cmds = ["""
VERSION=$(git rev-parse HEAD) VERSION=$(git rev-parse HEAD)
echo "Injecting ${VERSION} into Makefile..." echo "Injecting ${VERSION} into Makefile..."
sed -i"_orig" -E '/PROJECT_VERSION/ s/[0-9]+\\.[0-9]+\\.[0-9]+/${VERSION}/' src/osiris.app.src sed -i"_orig" -E '/PROJECT_VERSION/ s/[0-9]+\\.[0-9]+\\.[0-9]+/'${VERSION}'/' Makefile
echo "Injecting ${VERSION} into BUILD.bazel..."
sed -i"_orig" -E '/VERSION/ s/[0-9]+\\.[0-9]+\\.[0-9]+/'${VERSION}'/' BUILD.bazel
"""], """],
) )
@ -262,8 +264,10 @@ use_repo(
"jsx", "jsx",
"meck", "meck",
"observer_cli", "observer_cli",
"osiris",
"prometheus", "prometheus",
"proper", "proper",
"ra",
"ranch", "ranch",
"recon", "recon",
"redbug", "redbug",

View File

@ -161,10 +161,6 @@ erlang_app(
name = "osiris", name = "osiris",
branch = "main", branch = "main",
remote = "https://github.com/rabbitmq/osiris.git", remote = "https://github.com/rabbitmq/osiris.git",
repo_mapping = {
"@gen_batch_server": "@rules_erlang.2.5.2.erlang_package.gen_batch_server",
"@seshat": "@rules_erlang.2.5.2.erlang_package.seshat",
},
) )
hex_pm_erlang_app( hex_pm_erlang_app(