@vercel/go 3.0.2 → 3.0.4

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -17991,7 +17991,7 @@ async function getAnalyzedEntrypoint({
17991
17991
  if (!analyzed) {
17992
17992
  const err = new Error(
17993
17993
  `Could not find an exported function in "${entrypoint}"
17994
- Learn more: https://vercel.com/docs/runtimes#official-runtimes/go
17994
+ Learn more: https://vercel.com/docs/functions/serverless-functions/runtimes/go
17995
17995
  `
17996
17996
  );
17997
17997
  console.error(err.message);
@@ -18203,7 +18203,7 @@ async function parseGoModVersion(modulePath) {
18203
18203
  // src/index.ts
18204
18204
  var TMP = (0, import_os2.tmpdir)();
18205
18205
  var MAIN_GO_FILENAME = "main__vc__go__.go";
18206
- var HANDLER_FILENAME = `handler${OUT_EXTENSION}`;
18206
+ var HANDLER_FILENAME = `bootstrap${OUT_EXTENSION}`;
18207
18207
  async function initPrivateGit(credentials) {
18208
18208
  const gitCredentialsPath = (0, import_path2.join)((0, import_os2.homedir)(), ".git-credentials");
18209
18209
  await (0, import_execa2.default)("git", [
@@ -18342,10 +18342,11 @@ Manually assigning 'GO111MODULE' is not recommended.
18342
18342
  } else {
18343
18343
  await buildHandlerWithGoMod(buildOptions);
18344
18344
  }
18345
+ const runtime = process.env.VERCEL_USE_GO_PROVIDED_RUNTIME === "1" ? "provided.al2" : "go1.x";
18345
18346
  const lambda = new import_build_utils2.Lambda({
18346
18347
  files: { ...await (0, import_build_utils2.glob)("**", outDir), ...includedFiles },
18347
18348
  handler: HANDLER_FILENAME,
18348
- runtime: "go1.x",
18349
+ runtime,
18349
18350
  supportsWrapper: true,
18350
18351
  environment: {}
18351
18352
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/go",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/go",
@@ -23,8 +23,7 @@
23
23
  "@types/node-fetch": "^2.3.0",
24
24
  "@types/tar": "6.1.5",
25
25
  "@types/yauzl-promise": "2.1.0",
26
- "@vercel/build-utils": "7.2.1",
27
- "@vercel/ncc": "0.24.0",
26
+ "@vercel/build-utils": "7.2.5",
28
27
  "async-retry": "1.3.3",
29
28
  "execa": "^1.0.0",
30
29
  "fs-extra": "^7.0.0",
@@ -39,6 +38,7 @@
39
38
  "scripts": {
40
39
  "build": "node ../../utils/build-builder.mjs",
41
40
  "test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail",
42
- "test-e2e": "pnpm test"
41
+ "test-e2e": "pnpm test",
42
+ "type-check": "tsc --noEmit"
43
43
  }
44
44
  }