Functions failing in new deploys

I am getting this error message from new deploys:

    "errorType": "Runtime.UserCodeSyntaxError",
    "errorMessage": "SyntaxError: Invalid or unexpected token",
    "trace": [
        "Runtime.UserCodeSyntaxError: SyntaxError: Invalid or unexpected token",
        "    at _loadUserApp (/var/runtime/UserFunction.js:98:13)",
        "    at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
        "    at Object.<anonymous> (/var/runtime/index.js:43:30)",
        "    at Module._compile (internal/modules/cjs/loader.js:1158:30)",
        "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)",
        "    at Module.load (internal/modules/cjs/loader.js:1002:32)",
        "    at Function.Module._load (internal/modules/cjs/loader.js:901:14)",
        "    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)",
        "    at internal/main/run_main_module.js:18:47"

My functions use Go, not JS, so I’m not sure what’s going on.

I had been in the Build plugins beta. I opted out and did a fresh PR, and that seems to be working.

Maybe Build plugins aren’t compatible with Go functions?

Hi @carlmjohnson!

The Netlify Build beta should be backward compatible, including Go Functions.

This seems to be a bug with Go Functions support in the Netlify Build beta. I can reproduce your problem. I have created a GitHub issue here and am working on a fix.

Thanks for reporting this problem!

We have just fixed this problem.

Could you confirm your Go Functions are now working when the Build plugins beta is enabled? Thanks!