Skip to content

v0.0.16

Compare
Choose a tag to compare
@paketo-bot paketo-bot released this 25 Jun 19:54

Changes

Adds support for a WithMessage modifier on packit.Fail

For example, a call to packit.Fail.WithMessage("my error") will result in an error that triggers the correct fail exit code for the buildpack lifecycle, and also included the given message. This change is backwards compatible and so should not impact any buildpacks currently just using packit.Fail.

Adds a WithHeader method to cargo.Transport

For example, a call to cargo.NewTransport().WithHeader(http.Header{"Authorization": []string{"token ****"}) will return a Transport that attaches that header on every request made when the Drop method is called.