-
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
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) Signed-off-by: tzssangglass <[email protected]>
- Loading branch information
1 parent
7301c49
commit 2b45a45
Showing
2 changed files
with
21 additions
and
1 deletion.
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,6 +169,9 @@ genrule( | |
# alias LDOC command to true(1) command | ||
export LDOC=true | ||
|
||
# Install lua-messagepack | ||
$(location :luarocks_exec) install $(location :prepare_lua_messagepack) 2>&1 >[email protected] | ||
|
||
$(location :luarocks_exec) make --no-doc 2>&1 >[email protected] | ||
|
||
# only generate the output when the command succeeds | ||
|
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