-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
luaPackages.lua-resty-jwt: unbreak build #314863
Conversation
Fetch missing submodule providing lua-resty-hmac
Result of 10 packages built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should instead use our version of lua-resty-hmac instead of utilitezing vendoring.
I don't know how lua packaging works. I tried adding
to I then tried
which made the update script succeed and added lua-resty-hmac-ffi = callPackage({ buildLuarocksPackage, fetchFromGitHub, lua }:
buildLuarocksPackage {
pname = "lua-resty-hmac-ffi";
version = "0.06-1";
src = fetchFromGitHub {
owner = "jkeys089";
repo = "lua-resty-hmac";
rev = "0.06-1";
hash = "sha256-CdYps8gqJqa0UzvZ8CsesEyBIb3rr0ZD+ugCr5P96NM=";
};
disabled = lua.luaversion != "5.1";
meta = {
homepage = "https://github.com/jkeys089/lua-resty-hmac";
description = "HMAC functions for ngx_lua and LuaJIT";
license.fullName = "BSD-2-Clause License";
};
}) {}; to The generated package fails to build with
Which seems like a strange error. I'm probably doing something wrong. |
Same 😅
How did you get
I can try to have a look in a short while |
I got errors with GITHUB_TOKEN and It seems to be possible to add a package without updating: Edit: no, this doesn't seem to generate the entry in |
The lua-resty-hmac-ffi = prev.lua-resty-hmac-ffi.overrideAttrs (oa: {
postConfigure = ''
rockspecFilename=rockspec/''${rockspecFilename}
'';
}); I tried to add a patch to remove the vendored dependency From 60733110bc506fff2989371ad6db46d470b34f4a Mon Sep 17 00:00:00 2001
From: sveitser <[email protected]>
Date: Tue, 28 May 2024 11:51:31 +0200
Subject: [PATCH] patch rockspec
---
lua-resty-jwt-dev-0.rockspec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lua-resty-jwt-dev-0.rockspec b/lua-resty-jwt-dev-0.rockspec
index 89f80b0..97968e4 100644
--- a/lua-resty-jwt-dev-0.rockspec
+++ b/lua-resty-jwt-dev-0.rockspec
@@ -17,14 +17,14 @@ description = {
}
dependencies = {
'lua >= 5.1',
- 'lua-resty-openssl >= 0.6.8'
+ 'lua-resty-openssl >= 0.6.8',
+ 'lua-resty-hmac >= '0.06-1'
}
build = {
type = 'builtin',
modules = {
['resty.jwt'] = 'lib/resty/jwt.lua',
['resty.evp'] = 'lib/resty/evp.lua',
- ['resty.jwt-validators'] = 'lib/resty/jwt-validators.lua',
- ['resty.hmac'] = 'third-party/lua-resty-hmac/lib/resty/hmac.lua'
+ ['resty.jwt-validators'] = 'lib/resty/jwt-validators.lua'
}
}
--
2.44.1 And apply it with lua-resty-jwt = prev.lua-resty-jwt.overrideAttrs (_: {
patches = [ ./resty-jwt.patch ];
postConfigure = ''
cat ''${rockspecFilename}
'';
}); The patch applies fine but the rockspec file is unchanged. |
LGTM, tested using the nginx lua module |
luarocks-nix started using nurl in its last update and we disabled submodules by default without a way to pass it back. Ideally nurl would have a |
this looks fixed on master |
Yep, this was fixed in #341614. |
Fetch missing submodule providing lua-resty-hmac
tag: #ZurichZHF
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.