Skip to content

Commit

Permalink
fix(rocks): build.type instead of build.build_type
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 26, 2024
1 parent 4733611 commit aa1c957
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/lazy/pkg/rockspec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aa1c957

Please sign in to comment.