* chore: bump to buildpacks v0.8.2 for all versions This is causing me to rethink using versions in these templates, and our overall buildpack version/release strategy. But for now, we should land this before 0.16.0 * adds trust for any quay.io/boson builder Signed-off-by: Lance Ball <lball@redhat.com> |
||
|---|---|---|
| .. | ||
| go | ||
| node | ||
| python | ||
| quarkus | ||
| rust | ||
| springboot | ||
| test | ||
| typescript | ||
| README.md | ||
README.md
Templates
Packaging
When updates are made to these templates, they must be packaged (serialized as
a Go struture) by running make, and checking in the resultant pkged.go file.
How it works
running make in turn installs the pkger binary, which can be installed via:
go get github.com/markbates/pkger/cmd/pkger
Make then invokes pkger before go build.
The resulting pkged.go file includes the contents of the templates directory,
encoded as a Go strucutres which is then makde available in code using an API
similar to the standard library's os package.
Rationale
Until such time as embedding static assets in binaries is included in the
base go build functionality (see https://github.com/golang/go/issues/35950)
a third-party tool is required and pkger provides an API very similar
to the os package.