You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 07b1c25
Browse filesBrowse the repository at this point in the historyBrowse files
-- Licensed under the Apache License, Version 2.0 (the "License");
4
+
-- you may not use this file except in compliance with the License.
5
+
-- You may obtain a copy of the License at
6
+
--
7
+
-- http://www.apache.org/licenses/LICENSE-2.0
8
+
--
9
+
-- Unless required by applicable law or agreed to in writing, software
10
+
-- distributed under the License is distributed on an "AS IS" BASIS,
11
+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+
-- See the License for the specific language governing permissions and
13
+
-- limitations under the License.
14
+
15
+
localutil=require("util")
16
+
17
+
--- Fail fast when the musl Node.js binary cannot run: it needs libstdc++,
18
+
--- which musl distributions do not install by default. Without this check
19
+
--- the install looks successful and only `node --version` fails later with
20
+
--- `Error relocating ... symbol not found`.
21
+
--- See https://github.com/version-fox/vfox-nodejs/issues/29
22
+
--- @paramctxtable Context information
23
+
functionPLUGIN:PostInstall(ctx)
24
+
ifRUNTIME.osType~="linux" then
25
+
return
26
+
end
27
+
ifnotutil.is_musl() then
28
+
return
29
+
end
30
+
ifutil.has_libstdcxx() then
31
+
return
32
+
end
33
+
error("Node.js (musl build) requires libstdc++, which was not found on this system. Run `" ..util.libstdcxx_hint() .."` (possibly as root), then reinstall. See " ..util.ReadmeUrl)
0 commit comments