Comparison

util/dependencies.lua @ 12147:02481502c3dc

util.dependencies: Enable warning about missing lua-unbound Packages exists now.
author Kim Alvefur <zash@zash.se>
date Wed, 05 Jan 2022 04:12:00 +0100
parent 11973:d4730ae60226
child 12286:ad88732eea51
comparison
equal deleted inserted replaced
12146:9c69c062d6b7 12147:02481502c3dc
97 { "Source", "http://bitop.luajit.org/" }; 97 { "Source", "http://bitop.luajit.org/" };
98 }, "WebSocket support will not be available", err); 98 }, "WebSocket support will not be available", err);
99 end 99 end
100 100
101 local unbound, err = softreq"lunbound"; -- luacheck: ignore 211/err 101 local unbound, err = softreq"lunbound"; -- luacheck: ignore 211/err
102 if not unbound then -- luacheck: ignore 542 102 if not unbound then
103 --[[ TODO Re-enable once packages are available
104 missingdep("lua-unbound", { 103 missingdep("lua-unbound", {
104 { "Debian/Ubuntu", "sudo apt-get install lua-unbound" };
105 { "luarocks", "luarocks install luaunbound" }; 105 { "luarocks", "luarocks install luaunbound" };
106 { "Source", "https://www.zash.se/luaunbound.html" }; 106 { "Source", "https://www.zash.se/luaunbound.html" };
107 }, "Old DNS resolver library will be used", err); 107 }, "Old DNS resolver library will be used", err);
108 --]]
109 else 108 else
110 package.preload["net.adns"] = function () 109 package.preload["net.adns"] = function ()
111 local ub = require "net.unbound"; 110 local ub = require "net.unbound";
112 return ub; 111 return ub;
113 end 112 end