summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl
diff options
context:
space:
mode:
authorChen Yufei <[email protected]>2022-03-16 10:28:36 +0800
committerChen Yufei <[email protected]>2022-03-16 10:28:36 +0800
commit4e7ef0824c74db2aa27c7230da129e91ef8a13f9 (patch)
tree14918e5ec765b66bd9b8fcb84739ee4aef6ff0ef /xmake/modules/private/action/require/impl
parent0a97ca79d0e52e8f21d068047595446423720957 (diff)
fix typo and grammar.
Diffstat (limited to 'xmake/modules/private/action/require/impl')
-rw-r--r--xmake/modules/private/action/require/impl/actions/install.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua
index 5e8b84f26..81068a6e3 100644
--- a/xmake/modules/private/action/require/impl/actions/install.lua
+++ b/xmake/modules/private/action/require/impl/actions/install.lua
@@ -100,11 +100,11 @@ end
-- fix paths for the precompiled package
-- @see https://github.com/xmake-io/xmake/issues/1671
function _fix_paths_for_precompiled_package(package)
- -- Matches to path like (string inside brackets is matched):
+ -- Match to path like (string insides brackets is matched):
-- /home/user/.xmake[/pacakges/f/foo/9adc96bd69124211aad7dd58a36f02ce/]v1.0
- -- Replaces path string before "packages" with local pacakge install
+ -- Replace path string before "packages" with local pacakge install
-- directory.
- -- Note: It's possible that package A references files package B, thus we
+ -- Note: It's possible that package A references files in package B, thus we
-- need to match against all possible package install paths.
local buildhash_pattern = string.rep('%x', 32)
local match_pattern = "[\\/]packages[\\/]%w[\\/][^\\/]+[\\/][^\\/]+[\\/]" .. buildhash_pattern .. "[\\/]"