-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): install lua-messagepack 0.5.2 by rock directly (#14061)
* chore(deps): install lua-messagepack 0.5.2 by rock directly since lua-messagepack 0.5.2 has been archived, we can only install it directly via rock. Fix: [FTI-6417](https://konghq.atlassian.net/browse/FTI-6417) Please note this is a 3.4 OSS specific commit. --------- Signed-off-by: tzssangglass <[email protected]>
- Loading branch information
1 parent
6e2004b
commit 3701fd4
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,12 +140,21 @@ EOF | |
visibility = ["//visibility:public"], | ||
) | ||
|
||
genrule( | ||
name = "prepare_lua_messagepack", | ||
srcs = ["@lua_messagepack_src//file"], | ||
outs = ["lua-messagepack-0.5.2-1.src.rock"], | ||
cmd = "cp $(location @lua_messagepack_src//file) $@", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
genrule( | ||
name = "luarocks_make", | ||
srcs = [ | ||
"@kong//:rockspec_srcs", | ||
":luarocks_exec", | ||
":luarocks_target", # to avoid concurrency issue, run this after luarocks_target | ||
":prepare_lua_messagepack", | ||
], | ||
outs = ["luarocks_make.log"], | ||
cmd = """ | ||
|
@@ -160,7 +169,10 @@ genrule( | |
# alias LDOC command to true(1) command | ||
export LDOC=true | ||
|
||
$(location :luarocks_exec) make --no-doc 2>&1 >[email protected] | ||
# Install lua-messagepack | ||
$(location :luarocks_exec) install $(location :prepare_lua_messagepack) >>[email protected] 2>&1 | ||
|
||
$(location :luarocks_exec) make --no-doc >>[email protected] 2>&1 | ||
|
||
# only generate the output when the command succeeds | ||
mv [email protected] $@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters