MCPcopy Create free account
hub / github.com/cloudfoundry/nodejs-buildpack / nodeVersionRequiresSSLEnvVars

Function nodeVersionRequiresSSLEnvVars

src/nodejs/supply/supply.go:729–740  ·  view source on GitHub ↗
(version string)

Source from the content-addressed store, hash-verified

727}
728
729func nodeVersionRequiresSSLEnvVars(version string) (bool, error) {
730 // NOTE: ensures OpenSSL CA store works with Node v20 and higher. Waiting
731 // for resolution on https://github.com/nodejs/node/issues/43560 to decide
732 // how to properly fix this.
733
734 nodeVersion, err := semver.NewVersion(version)
735 if err != nil {
736 return false, err
737 }
738
739 return nodeVersion.Major() >= 20, nil
740}
741
742func (s *Supplier) InstallNPM() error {
743 buffer := new(bytes.Buffer)

Callers 2

InstallNodeMethod · 0.85
CreateDefaultEnvMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected