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
6 changes: 4 additions & 2 deletions pkg/builders/builders_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ func createCertificate(t *testing.T) string {
ski := sha1.Sum(x509.MarshalPKCS1PublicKey(&certPrivKey.PublicKey))

cert := &x509.Certificate{
SerialNumber: randSN(),
BasicConstraintsValid: true,
IsCA: true,
SerialNumber: randSN(),
// openssl hash of this subject is 712d4c9d
// do not update the subject without also updating the hash referred from another places (e.g. Dockerfile)
// See also: https://github.com/paketo-buildpacks/ca-certificates/blob/v1.0.1/cacerts/certs.go#L132
Expand Down Expand Up @@ -159,7 +161,7 @@ func buildPatchedBuilder(ctx context.Context, t *testing.T, certDir string) stri
t.Fatal(err)
}

dockerfile := `FROM ghcr.io/knative/builder-jammy-base:latest
dockerfile := `FROM ghcr.io/knative/builder-jammy-tiny:latest
COPY 712d4c9d.0 /etc/ssl/certs/
`

Expand Down
4 changes: 2 additions & 2 deletions pkg/builders/testdata/go-fn-with-private-deps/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module function

go 1.23.4
go 1.22

require git-private.127.0.0.1.sslip.io/foo.git v0.0.0-20250312185939-e7bf19abfd77 // indirect
require git-private.127.0.0.1.sslip.io/foo.git v0.0.0-20250319130200-b1126104a200 // indirect
2 changes: 2 additions & 0 deletions pkg/builders/testdata/go-fn-with-private-deps/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
git-private.127.0.0.1.sslip.io/foo.git v0.0.0-20250312185939-e7bf19abfd77 h1:IJ6SiucMsd0bjPwuj3VIGCHN225+0lCU1OZSmsg3Rjk=
git-private.127.0.0.1.sslip.io/foo.git v0.0.0-20250312185939-e7bf19abfd77/go.mod h1:rG9yzCHOSu2zUBmaB7GEu7RBsjiJZRUP1hy26O5CLsc=
git-private.127.0.0.1.sslip.io/foo.git v0.0.0-20250319130200-b1126104a200 h1:moO2xbNMRhtKOUjzkXNgtv0y3k2Xo+xP9N4MagWSXe0=
git-private.127.0.0.1.sslip.io/foo.git v0.0.0-20250319130200-b1126104a200/go.mod h1:8MJdyAVONQdluGP17pXr5Lu//oVu7YHyXBE29FDEEng=
Loading