Commit Graph
49 Commits
Author SHA1 Message Date
Andy Wilkinson 14536633ec Merge branch '4.0.x' into 4.1.x
Closes gh-51581
2026-09-04 11:46:53 +01:00
Andy Wilkinson 71bfa94d10 Polish "Delete layer temp file when layer creation fails"
See gh-51519

Signed-off-by: Andy Wilkinson <andy.wilkinson@broadcom.com>
2026-09-04 11:12:11 +01:00
Junhwan Choi 5d6e417134 Delete layer temp file when layer creation fails
When ImageBuildpack.ExportedLayers creates a layer file, the copy from
the source tar can fail, for example when a malformed entry name is
rejected. The temporary layer file created before the copy was not
deleted in that case and was left orphaned in the system temp
directory.

Delete the layer temp file when creating it fails, suppressing any
secondary failure from the delete so the original exception is
propagated.

Signed-off-by: Junhwan Choi <devjunsday@gmail.com>

See gh-51519
2026-09-04 11:06:03 +01:00
Stéphane Nicoll 61d7198ecc Merge branch '4.0.x' into 4.1.x
Closes gh-51400
2026-08-21 10:51:10 +02:00
Stéphane Nicoll 0b0a6c88dc Polish "Warn when builder and run image stack IDs do not match"
See gh-51390
2026-08-21 10:49:17 +02:00
Scott Frederick 829fd8bb29 Warn when builder and run image stack IDs do not match
Spring Boot's Buildpacks integration inspects the stack IDs contained
in labels on the builder image and run image. Prior to this change, it
was a failure condition when the stack IDs did not match. Stack IDs
have been deprecated in the CNB spec, and it is no longer required
that the builder and run images match. The validation of stack IDs
was changed from an error to a warning to match the `pack` reference
implementation.

See gh-51390

Signed-off-by: Scott Frederick <scottyfred@gmail.com>
2026-08-21 10:49:17 +02:00
Stéphane Nicoll 4c5ed39cef Merge branch '4.0.x' into 4.1.x
Closes gh-51132
2026-07-27 10:04:09 +02:00
Stéphane Nicoll e5106ef9e9 Polish "Delete temporary file when ExportedImageTar construction fails"
See gh-51117
2026-07-27 09:57:30 +02:00
wantaek 58a96f9a00 Delete temporary file when ExportedImageTar construction fails
ExportedImageTar creates a temporary file in its constructor and then
copies the exported image into it and builds the layer factory. If
either step throws, the constructor fails before the instance is
assigned, so the try-with-resources statement that uses it never calls
close() and the docker-layers- temporary file is left behind.

Delete the temporary file when the constructor fails so its cleanup
matches close().

See gh-51117

Signed-off-by: wantaek <wantaekchoi@gmail.com>
2026-07-27 09:31:38 +02:00
Stéphane Nicoll f004d3077c Merge branch '4.0.x'
Closes gh-50941
2026-07-14 08:35:49 +02:00
Sebastien Tardif 7bdb1320bf Close streams and delete intermediate temps in ImageBuildpack
ExportedLayers left the intermediate create-builder-scratch-source
temp file behind after rebased layer files were written, and opened
layer InputStreams without closing them when StreamUtils.copy does
not close either stream. Delete the source temp in a finally block
and use try-with-resources for the apply path so layer files can be
deleted reliably.

See gh-50919

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
2026-07-14 08:33:33 +02:00
Stéphane Nicoll f9c9820ca6 Merge branch '4.0.x'
Closes gh-50643
2026-05-31 16:15:19 +02:00
Stéphane Nicoll 98048ef12e Merge branch '3.5.x' into 4.0.x
Closes gh-50642
2026-05-31 16:15:09 +02:00
Andy Wilkinson 6a74bb85a3 Merge branch '4.0.x'
Closes gh-50440
2026-05-14 15:03:44 +01:00
Andy Wilkinson add52b6ccd Merge branch '3.5.x' into 4.0.x
Closes gh-50439
2026-05-14 15:02:24 +01:00
Phillip Webb 644ac36ab1 Merge branch '4.0.x'
Closes gh-50410
2026-05-12 11:48:40 -07:00
Phillip Webb 43db9f0a0c Merge branch '3.5.x' into 4.0.x
Closes gh-50409
2026-05-12 11:48:30 -07:00
Phillip Webb 51ffc529ba Merge branch '4.0.x' 2026-04-22 18:44:03 -07:00
Phillip Webb 43617bd1e1 Merge branch '3.5.x' into 4.0.x 2026-04-22 18:43:55 -07:00
Phillip Webb 3c7e86167c Merge branch '4.0.x'
Closes gh-50165
2026-04-22 18:05:40 -07:00
Phillip Webb c38383b8d8 Merge branch '3.5.x' into 4.0.x
Closes gh-50164
2026-04-22 18:05:25 -07:00
Stéphane Nicoll 1519bcf1e2 Polish "Add support for additional Homebrew home on macOS"
See gh-49721
2026-04-03 16:19:47 +02:00
1233day 2d4c235522 Add support for additional Homebrew home on macOS
Add /opt/homebrew/bin as an additional macOS fallback location when
starting external processes.

The previous fallback assumed /usr/local/bin only, which can fail on
Apple Silicon Homebrew setups in restricted PATH environments (for
example, IDE or UI-launched processes).

Update CredentialHelperTests to verify both macOS fallback paths are
attempted.

See gh-49721

Signed-off-by: 1233day <1233day@naver.com>
2026-04-03 13:32:45 +02:00
Stéphane Nicoll 57a3521c45 Merge branch '3.5.x' into 4.0.x
Closes gh-49818
2026-03-27 11:44:54 +01:00
Andy Wilkinson 6779e09933 Merge branch '3.5.x' into 4.0.x
Closes gh-49596
2026-03-13 16:04:59 +00:00
Stéphane Nicoll 9abc33d48e Merge branch '3.5.x' into 4.0.x
Closes gh-48979
2026-01-27 08:23:49 +01:00
Stéphane Nicoll 47c24fcb93 Merge branch '3.5.x' into 4.0.x
Closes gh-48650
2025-12-31 10:50:38 +01:00
Stéphane Nicoll 5c2b908788 Merge branch '3.5.x' into 4.0.x
Closes gh-48642
2025-12-30 10:42:38 +01:00
Stéphane Nicoll 9b7451ed9d Merge branch '3.5.x' into 4.0.x
Closes gh-48622
2025-12-26 09:01:59 +01:00
Phillip Webb 90d53b6d1b Merge branch '3.5.x'
Closes gh-48128
2025-11-13 15:27:15 -08:00
Stéphane Nicoll e89bb1f62f Merge branch '3.5.x'
Closes gh-48109
2025-11-13 10:56:04 +01:00
Stéphane Nicoll d1e5fe3248 Merge branch '3.5.x'
Closes gh-48106
2025-11-13 10:31:25 +01:00
Phillip Webb 55c3f03144 Merge branch '3.5.x'
Closes gh-48103
2025-11-12 20:44:55 -08:00
Phillip Webb a25bcfc610 Merge branch '3.5.x'
Closes gh-48099
2025-11-12 14:22:17 -08:00
Andy Wilkinson 0e44f1de42 Merge branch '3.5.x' 2025-11-10 10:39:32 +00:00
Phillip Webb 4b2c6fa40b Merge branch '3.5.x'
Closes gh-47901
2025-10-31 12:45:54 -07:00
Stéphane Nicoll f1b1183098 Polish "Use JsonMapper instead of ObjectMapper where feasible"
See gh-47503
2025-10-20 13:21:47 +02:00
Yanming Zhou 609b0b444e Use JsonMapper instead of ObjectMapper where feasible
See gh-47503

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-10-20 13:16:52 +02:00
Stéphane Nicoll cfe57624e6 Merge branch '3.5.x'
Closes gh-47704
2025-10-19 16:48:52 +02:00
Moritz Halbritter 2850ba06c8 Add nullability annotations to tests in buildpack/spring-boot-buildpack-platform
See gh-47263
2025-10-16 11:24:51 +02:00
Moritz Halbritter c2286abdf9 Improve null-safety of buildpack/spring-boot-buildpack-platform
See gh-47263
2025-10-16 11:24:51 +02:00
Andy Wilkinson f549467666 Rename SharedObjectMapper to SharedJsonMapper
Closes gh-47471
2025-10-10 09:33:34 +01:00
Phillip Webb 3b2c8abf50 Restructure buildpack docker package
Closes gh-45284
2025-09-23 13:59:27 -07:00
Andy Wilkinson d353038c58 Update Jackson support to require Jackson 3
Closes gh-45535
2025-09-02 11:37:09 +01:00
Moritz Halbritter ca7e025dfd Improve null-safety of buildpack/spring-boot-buildpack-platform
See gh-46926
2025-08-26 14:22:53 +02:00
Moritz Halbritter 6f41eb4915 Add more nullability annotations to
buildpack/spring-boot-buildpack-platform

See gh-46587
2025-08-11 13:12:53 +02:00
Moritz Halbritter 2449769573 Add nullability annotations to buildpack/spring-boot-buildpack-platform
See gh-46587
2025-08-08 09:20:13 +02:00
Phillip Webb f1cc943507 Align PemCertificateParser with main code 2025-07-31 09:36:58 +01:00
Phillip Webb decc32dde3 Restructure project directories to better fit Gradle
Closes gh-46358
2025-07-10 17:54:08 -07:00