func/templates
Lance Ball bfa5746442
chore: bump to buildpacks v0.8.3 for all versions (#402)
* 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>
2021-06-23 12:44:42 -04:00
..
go chore: bump to buildpacks v0.8.3 for all versions (#402) 2021-06-23 12:44:42 -04:00
node chore: bump to buildpacks v0.8.3 for all versions (#402) 2021-06-23 12:44:42 -04:00
python chore: bump to buildpacks v0.8.3 for all versions (#402) 2021-06-23 12:44:42 -04:00
quarkus chore: bump to buildpacks v0.8.3 for all versions (#402) 2021-06-23 12:44:42 -04:00
rust chore: bump to buildpacks v0.8.3 for all versions (#402) 2021-06-23 12:44:42 -04:00
springboot chore: bump to buildpacks v0.8.3 for all versions (#402) 2021-06-23 12:44:42 -04:00
test feat: typed errors for templates use cases 2021-06-18 19:08:01 +09:00
typescript chore: bump to buildpacks v0.8.3 for all versions (#402) 2021-06-23 12:44:42 -04:00
README.md src!: revert bump to go 1.16 and template changes (#340) 2021-05-12 14:37:21 -04:00

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.