Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paketo-buildpacks/go
A Cloud Native Buildpack for Go
https://github.com/paketo-buildpacks/go
cnb golang
Last synced: 4 days ago
JSON representation
A Cloud Native Buildpack for Go
- Host: GitHub
- URL: https://github.com/paketo-buildpacks/go
- Owner: paketo-buildpacks
- License: apache-2.0
- Created: 2020-04-13T20:16:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-16T06:28:43.000Z (3 months ago)
- Last Synced: 2024-10-17T22:05:09.708Z (3 months ago)
- Topics: cnb, golang
- Language: Go
- Homepage:
- Size: 83.2 MB
- Stars: 85
- Watchers: 4
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-repositories - paketo-buildpacks/go - A Cloud Native Buildpack for Go (Go)
- awesome-cnb - Golang
README
# Go Paketo Buildpack
## `gcr.io/paketo-buildpacks/go`
The Go Paketo Buildpack provides a set of collaborating buildpacks that
enable the building of a Go-based application. These buildpacks include:
- [Go Distribution CNB](https://github.com/paketo-buildpacks/go-dist)
- [Go Mod Vendor CNB](https://github.com/paketo-buildpacks/go-mod-vendor)
- [Go Build CNB](https://github.com/paketo-buildpacks/go-build)The buildpack supports building applications that use either the built-in [Go
modules](https://golang.org/cmd/go/#hdr-Module_maintenance) feature for managing
their dependencies. Usage examples can be found in the
[`samples` repository under the `go` directory](https://github.com/paketo-buildpacks/samples/tree/main/go).#### The Go buildpack is compatible with the following builder(s):
- [Paketo Jammy Full Builder](https://github.com/paketo-buildpacks/builder-jammy-full)
- [Paketo Jammy Base Builder](https://github.com/paketo-buildpacks/builder-jammy-base)
- [Paketo Jammy Tiny Builder](https://github.com/paketo-buildpacks/builder-jammy-tiny)
- [Paketo Jammy Static Buildpackless Builder](https://github.com/paketo-buildpacks/builder-jammy-buildpackless-static)†
- [Paketo Full Builder](https://github.com/paketo-buildpacks/full-builder)
- [Paketo Base Builder](https://github.com/paketo-buildpacks/base-builder)
- [Paketo Tiny Builder](https://github.com/paketo-buildpacks/tiny-builder)This buildpack also includes the following utility buildpacks:
- [Git CNB](https://github.com/paketo-buildpacks/git)
- [Procfile CNB](https://github.com/paketo-buildpacks/procfile)
- [Environment Variables CNB](https://github.com/paketo-buildpacks/environment-variables)
- [Image Labels CNB](https://github.com/paketo-buildpacks/image-labels)
- [CA Certificates CNB](https://github.com/paketo-buildpacks/ca-certificates)Check out the [Go Paketo Buildpack docs](https://paketo.io/docs/buildpacks/language-family-buildpacks/go/) for more information.
† To build with the static buildpackless builder, use the following command:
```
pack build \
--builder paketobuildpacks/builder-jammy-buildpackless-static \
--buildpack paketo-buildpacks/go \
--env "CGO_ENABLED=0" \
--env "BP_GO_BUILD_FLAGS=-buildmode=default"
```