projectriff / node-function-buildpack Goto Github PK
View Code? Open in Web Editor NEWA Cloud Native Buildpack for riff node functions
License: Apache License 2.0
A Cloud Native Buildpack for riff node functions
License: Apache License 2.0
Dependabot couldn't parse the go.mod found at /go.mod
.
The error Dependabot encountered was:
go: github.com/buildpack/[email protected] requires
gopkg.in/[email protected]: unrecognized import path "gopkg.in/check.v1" (parse https://gopkg.in/check.v1?go-get=1: no go-import meta tags ())
Dependabot couldn't parse the go.mod found at /go.mod
.
The error Dependabot encountered was:
go: github.com/buildpack/[email protected] requires
gopkg.in/[email protected] requires
gopkg.in/[email protected]: invalid version: git fetch --unshallow -f origin in /opt/go/gopath/pkg/mod/cache/vcs/9241c28341fcedca6a799ab7a465dd6924dc5d94044cbfabb75778817250adfc: exit status 128:
fatal: The remote end hung up unexpectedly
Until a fix is found projectriff/node-function-invoker#130, Node 13 should be excluded from the buildpack.
This is on a newly installed 0.6 snapshot (187e783565eb69c76af017d1d9e461432350a51a
) and I also had the same issue on 0.5.
App (knative runtime) works fine with node 10 but after setting this
"engines": {
"node": "12"
},
the runtime dies like this:
Waiting for deployer "pquery" to become ready...
Starting streaming-http-adapter 0.5.1-snapshot b607f3d37585fe77b7c3a7a2ea5c96dac3f44c07
foobar/pquery-deployer-nxkbd-tcmwp-deployment-69d754c97d-v5gh2[user-container]:
/layers/io.projectriff.node/riff-invoker-node/node_modules/grpc/src/grpc_extension.js:55
throw error;
^
foobar/pquery-deployer-nxkbd-tcmwp-deployment-69d754c97d-v5gh2[user-container]:
Error: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: node-v72-linux-x64-glibc
Found: [node-v64-linux-x64-glibc]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module '/layers/io.projectriff.node/riff-invoker-node/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc/grpc_node.node'
Require stack:
- /layers/io.projectriff.node/riff-invoker-node/node_modules/grpc/src/grpc_extension.js
- /layers/io.projectriff.node/riff-invoker-node/node_modules/grpc/src/client_interceptors.js
- /layers/io.projectriff.node/riff-invoker-node/node_modules/grpc/src/client.js
- /layers/io.projectriff.node/riff-invoker-node/node_modules/grpc/index.js
- /layers/io.projectriff.node/riff-invoker-node/lib/streaming-pipeline.js
- /layers/io.projectriff.node/riff-invoker-node/lib/invoker.js
- /layers/io.projectriff.node/riff-invoker-node/server.js
at Object.<anonymous> (/layers/io.projectriff.node/riff-invoker-node/node_modules/grpc/src/grpc_extension.js:53:17)
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 Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/layers/io.projectriff.node/riff-invoker-node/node_modules/grpc/src/client_interceptors.js:144:12)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) {
code: 'MODULE_NOT_FOUND'
}
Child process exited with exit status 1
This is the part where the builder picks the image to use:
[builder] Node Engine Buildpack 0.0.168
[builder] Resolving Node Engine version
[builder] Candidate version sources (in priority order):
[builder] package.json -> "12"
[builder] <unknown> -> "*"
[builder]
[builder] Selected Node Engine version (using package.json): 12.16.1
[builder]
[builder] Executing build process
[builder] Installing Node Engine 12.16.1
[builder] Completed in 3.804s
[builder]
[builder] Configuring environment
[builder] NODE_ENV -> "production"
[builder] NODE_HOME -> "/layers/org.cloudfoundry.node-engine/node"
[builder] NODE_VERBOSE -> "false"
[builder]
[builder] Writing profile.d/0_memory_available.sh
[builder] Calculates available memory based on container limits at launch time.
[builder] Made available in the MEMORY_AVAILABLE environment variable.
[builder]
[builder] Yarn Install Buildpack 0.1.10
[builder] Reusing cached layer /layers/org.cloudfoundry.yarn-install/yarn
[builder]
[builder] Resolving installation process
[builder] Process inputs:
[builder] yarn.lock -> Found
[builder]
[builder] Selected default build process: 'yarn install'
[builder]
[builder] Reusing cached layer /layers/org.cloudfoundry.yarn-install/modules
[builder]
The module path github.com/cloudfoundry/npm-cnb
found in your /go.mod
doesn't match the actual path github.com/paketo-buildpacks/npm
found in the dependency's go.mod
.
Updating the module path in your go.mod
to github.com/paketo-buildpacks/npm
should resolve this issue.
The shortcoming with gRPC caused by Node version switch has been fixed.
However, we should still trigger a rebuild when the Node version changes.
Dependabot couldn't parse the go.mod found at /go.mod
.
The error Dependabot encountered was:
go: github.com/buildpacks/[email protected] requires
github.com/Microsoft/[email protected] requires
github.com/Microsoft/[email protected]: invalid version: git fetch --unshallow -f origin in /opt/go/gopath/pkg/mod/cache/vcs/6d816430711fd34e85e6d1b19149940a1a1a99affe8b075e5ac3bbaa89b3b36f: exit status 128:
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 Gateway Timeout
fatal: The remote end hung up unexpectedly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.