From aa1c9572aa1916e582f9b9c3d43e272b4f23b326 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 26 Jun 2024 08:50:06 +0200 Subject: [PATCH] fix(rocks): build.type instead of build.build_type --- lua/lazy/pkg/rockspec.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/lazy/pkg/rockspec.lua b/lua/lazy/pkg/rockspec.lua index 02c6155..2cae8a5 100644 --- a/lua/lazy/pkg/rockspec.lua +++ b/lua/lazy/pkg/rockspec.lua @@ -10,7 +10,7 @@ local Util = require("lazy.util") ---@field package string ---@field version string ---@field dependencies string[] ----@field build? {build_type?: string, modules?: any[]} +---@field build? {type?: string, modules?: any[]} ---@field source? {url?: string} ---@class RockManifest @@ -273,9 +273,9 @@ function M.get(plugin) -- has a complex build process or ( rockspec.build - and rockspec.build.build_type - and rockspec.build.build_type ~= "none" - and not (rockspec.build.build_type == "builtin" and not rockspec.build.modules) + and rockspec.build.type + and rockspec.build.type ~= "none" + and not (rockspec.build.type == "builtin" and not rockspec.build.modules) ) if not use then