@netlify/build 29.16.3 → 29.16.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/core/build.js CHANGED
@@ -63,6 +63,7 @@ const tExecBuild = async function ({ config, defaultConfig, cachedConfig, cached
63
63
  nodePath,
64
64
  timers,
65
65
  quiet,
66
+ featureFlags,
66
67
  });
67
68
  if (featureFlags.build_automatic_runtime && framework) {
68
69
  const runtime = supportedRuntimes[framework];
@@ -37,8 +37,8 @@ export const getConfigOpts = function ({ config, defaultConfig, cwd, repositoryR
37
37
  };
38
38
  };
39
39
  // Retrieve configuration object
40
- const tLoadConfig = async function ({ configOpts, cachedConfig, cachedConfigPath, envOpt, debug, logs, nodePath, quiet, }) {
41
- const { configPath, headersPath, redirectsPath, buildDir, repositoryRoot, config: netlifyConfig, context: contextA, branch: branchA, token: tokenA, api, siteInfo, env, integrations, } = await resolveInitialConfig(configOpts, cachedConfig, cachedConfigPath);
40
+ const tLoadConfig = async function ({ configOpts, cachedConfig, cachedConfigPath, envOpt, debug, logs, nodePath, quiet, featureFlags, }) {
41
+ const { configPath, headersPath, redirectsPath, buildDir, repositoryRoot, config: netlifyConfig, context: contextA, branch: branchA, token: tokenA, api, siteInfo, env, integrations, } = await resolveInitialConfig(configOpts, cachedConfig, cachedConfigPath, featureFlags);
42
42
  if (!quiet) {
43
43
  logConfigInfo({ logs, configPath, buildDir, netlifyConfig, context: contextA, debug });
44
44
  }
@@ -68,8 +68,8 @@ export const loadConfig = measureDuration(tLoadConfig, 'resolve_config');
68
68
  // Retrieve initial configuration.
69
69
  // In the buildbot and CLI, we re-use the already parsed `@netlify/config`
70
70
  // return value which is passed as `cachedConfig`/`cachedConfigPath`.
71
- const resolveInitialConfig = async function (configOpts, cachedConfig, cachedConfigPath) {
72
- return await resolveConfig({ ...configOpts, cachedConfig, cachedConfigPath });
71
+ const resolveInitialConfig = async function (configOpts, cachedConfig, cachedConfigPath, featureFlags) {
72
+ return await resolveConfig({ ...configOpts, cachedConfig, cachedConfigPath, featureFlags });
73
73
  };
74
74
  const logConfigInfo = function ({ logs, configPath, buildDir, netlifyConfig, context, debug }) {
75
75
  logBuildDir(logs, buildDir);
@@ -36,7 +36,7 @@ export const resolvePluginsPath = async function ({ pluginsOptions, siteInfo, bu
36
36
  logs,
37
37
  });
38
38
  let integrationPluginOptions = [];
39
- if (featureFlags.build_fetch_integrations) {
39
+ if (featureFlags.buildbot_fetch_integrations) {
40
40
  integrationPluginOptions = await handleIntegrations({ integrations, autoPluginsDir, mode, logs });
41
41
  }
42
42
  return [...pluginsOptionsE, ...integrationPluginOptions];
@@ -12,6 +12,12 @@ export const getZipError = async function (error, functionsSrc) {
12
12
  if (isPackageJsonError(error)) {
13
13
  return getPackageJsonError(error);
14
14
  }
15
+ if (isGoVersionError(error)) {
16
+ return getGoVersionError(error);
17
+ }
18
+ if (isGoMissingDependencyError(error)) {
19
+ return getGoMissingDependencyError(error);
20
+ }
15
21
  return error;
16
22
  };
17
23
  const getModuleNotFoundError = async function (error, functionsSrc) {
@@ -121,3 +127,18 @@ const getPackageJsonError = function (error) {
121
127
  addErrorInfo(error, { type: 'resolveConfig' });
122
128
  return error;
123
129
  };
130
+ const isGoVersionError = function (error) {
131
+ return error.message.includes('module requires Go');
132
+ };
133
+ const getGoVersionError = function (error) {
134
+ addErrorInfo(error, { type: 'resolveConfig' });
135
+ return error;
136
+ };
137
+ const isGoMissingDependencyError = function (error) {
138
+ return (error.message.includes('missing go.sum entry for module providing package') ||
139
+ error.message.includes('no required module provides package'));
140
+ };
141
+ const getGoMissingDependencyError = function (error) {
142
+ addErrorInfo(error, { type: 'dependencies' });
143
+ return error;
144
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.16.3",
3
+ "version": "29.16.5",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/core/main.js",
@@ -65,7 +65,7 @@
65
65
  "@bugsnag/js": "^7.0.0",
66
66
  "@honeycombio/opentelemetry-node": "^0.4.0",
67
67
  "@netlify/cache-utils": "^5.1.5",
68
- "@netlify/config": "^20.6.2",
68
+ "@netlify/config": "^20.6.3",
69
69
  "@netlify/edge-bundler": "8.16.4",
70
70
  "@netlify/framework-info": "^9.8.10",
71
71
  "@netlify/functions-utils": "^5.2.18",
@@ -148,5 +148,5 @@
148
148
  "module": "commonjs"
149
149
  }
150
150
  },
151
- "gitHead": "487f1b282fed53beeb3ea17db151a741535ba8fc"
151
+ "gitHead": "bee369b7a72829316097febddb3cb5e9a8e7d829"
152
152
  }