Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/cloudfoundry/libbuildpack v0.0.0-20260306121953-8ab9253c8181
github.com/cloudfoundry/switchblade v0.9.5
github.com/golang/mock v1.6.0
github.com/onsi/ginkgo v1.16.5
github.com/onsi/ginkgo/v2 v2.22.1
github.com/onsi/gomega v1.36.2
github.com/sclevine/spec v1.4.0
gopkg.in/jarcoal/httpmock.v1 v1.0.0-20181117152235-275e9df93516
Expand Down Expand Up @@ -36,7 +36,6 @@ require (
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/nxadm/tail v1.4.11 // indirect
github.com/onsi/ginkgo/v2 v2.22.1 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/paketo-buildpacks/packit v1.3.1 // indirect
Expand All @@ -58,7 +57,6 @@ require (
golang.org/x/sys v0.29.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/tools v0.29.0 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/brats/brats_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/cloudfoundry/libbuildpack/bratshelper"
"github.com/cloudfoundry/libbuildpack/cutlass"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/brats/brats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package brats_test
import (
"github.com/cloudfoundry/libbuildpack/bratshelper"
"github.com/cloudfoundry/libbuildpack/cutlass"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/finalize/finalize_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package finalize_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"testing"
Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/finalize/finalize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/cloudfoundry/libbuildpack"
"github.com/cloudfoundry/libbuildpack/ansicleaner"
"github.com/golang/mock/gomock"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/hooks/contrast_security_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/cloudfoundry/libbuildpack"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/hooks/hooks_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package hooks_test
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"gopkg.in/jarcoal/httpmock.v1"
Expand Down
22 changes: 11 additions & 11 deletions src/nodejs/hooks/sealights_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/cloudfoundry/libbuildpack"
"github.com/cloudfoundry/nodejs-buildpack/src/nodejs/hooks"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down Expand Up @@ -293,7 +293,7 @@ var _ = Describe("Sealights hook", func() {
It("should use custom npmRunScript parameter for npm commands", func() {
err = os.WriteFile(filepath.Join(stager.BuildDir(), procfileName), []byte("web: npm run dev"), 0755)
Expect(err).To(BeNil())

customPackageJson := "{\n \"scripts\": {\n \"dev\": \"" + originalStartCommand + "\",\n \"start\": \"node index.js\"\n }\n}"
err = os.WriteFile(filepath.Join(stager.BuildDir(), packageJsonName), []byte(customPackageJson), 0755)
Expect(err).To(BeNil())
Expand All @@ -314,10 +314,10 @@ var _ = Describe("Sealights hook", func() {

err = sealights.AfterCompile(stager)
Expect(err).To(BeNil())

packageJson, err := sealights.ReadPackageJson(stager)
Expect(err).To(BeNil())

devScript := packageJson["scripts"].(map[string]interface{})["dev"].(string)
Expect(devScript).To(ContainSubstring("slnodejs"))
Expect(devScript).To(ContainSubstring("index.js --build 192 --name Good"))
Expand Down Expand Up @@ -649,10 +649,10 @@ var _ = Describe("Sealights hook", func() {
BeforeEach(func() {
packageJson = map[string]interface{}{
"scripts": map[string]interface{}{
"start": "node server.js",
"test": "mocha",
"dev": "nodemon server.js",
"build": "webpack",
"start": "node server.js",
"test": "mocha",
"dev": "nodemon server.js",
"build": "webpack",
},
}
})
Expand Down Expand Up @@ -696,7 +696,7 @@ var _ = Describe("Sealights hook", func() {
BeforeEach(func() {
err = os.WriteFile(filepath.Join(stager.BuildDir(), procfileName), []byte("web: npm run custom-script"), 0755)
Expect(err).To(BeNil())

customPackageJson := "{\n \"scripts\": {\n \"custom-script\": \"" + originalStartCommand + "\",\n \"start\": \"node index.js\"\n }\n}"
err = os.WriteFile(filepath.Join(stager.BuildDir(), packageJsonName), []byte(customPackageJson), 0755)
Expect(err).To(BeNil())
Expand Down Expand Up @@ -731,7 +731,7 @@ var _ = Describe("Sealights hook", func() {

packageJson, err := sealights.ReadPackageJson(stager)
Expect(err).To(BeNil())

customScript := packageJson["scripts"].(map[string]interface{})["custom-script"].(string)
cleanResult := strings.ReplaceAll(customScript, " ", "")
Expect(cleanResult).To(Equal(expected))
Expand All @@ -746,7 +746,7 @@ var _ = Describe("Sealights hook", func() {

packageJson, err := sealights.ReadPackageJson(stager)
Expect(err).To(BeNil())

startScript := packageJson["scripts"].(map[string]interface{})["start"].(string)
Expect(startScript).To(ContainSubstring("slnodejs"))
})
Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/hooks/seeker_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/cloudfoundry/libbuildpack"
"github.com/cloudfoundry/nodejs-buildpack/src/nodejs/hooks"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/hooks/snyk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/cloudfoundry/nodejs-buildpack/src/nodejs/hooks"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/npm/npm_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package npm_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"testing"
Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/npm/npm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/cloudfoundry/libbuildpack"
"github.com/cloudfoundry/libbuildpack/ansicleaner"
"github.com/golang/mock/gomock"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/supply/supply_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package supply_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"testing"
Expand Down
3 changes: 1 addition & 2 deletions src/nodejs/supply/supply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import (
"github.com/cloudfoundry/libbuildpack/ansicleaner"
"github.com/cloudfoundry/nodejs-buildpack/src/nodejs/supply"
"github.com/golang/mock/gomock"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/yarn/yarn_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package yarn_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"testing"
Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/yarn/yarn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/cloudfoundry/libbuildpack"
"github.com/cloudfoundry/libbuildpack/ansicleaner"
"github.com/golang/mock/gomock"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
14 changes: 0 additions & 14 deletions vendor/github.com/fsnotify/fsnotify/.cirrus.yml

This file was deleted.

10 changes: 0 additions & 10 deletions vendor/github.com/fsnotify/fsnotify/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions vendor/github.com/fsnotify/fsnotify/.mailmap

This file was deleted.

Loading
Loading