MCPcopy Index your code
hub / github.com/cloudfoundry/go-buildpack

github.com/cloudfoundry/go-buildpack @v1.10.48

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.10.48 ↗ · + Follow
222 symbols 574 edges 66 files 57 documented · 26%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cloud Foundry Go(Lang) Buildpack

CF Slack Join us on Slack

A Cloud Foundry buildpack for Go(lang) based apps.

Buildpack User Documentation

Official buildpack documentation can be found at go buildpack docs.

Building the Buildpack

To build this buildpack, run the following command from the buildpack's directory:

./scripts/package.sh --stack [cflinuxfs3 | cflinuxfs4] --version <version>

You can then find the built artifact in ./build/buildpack.zip.

Use in Cloud Foundry

Upload the buildpack to your Cloud Foundry and optionally specify it by name

cf create-buildpack [BUILDPACK_NAME] [BUILDPACK_ZIP_FILE_PATH] 1
cf push my_app [-b BUILDPACK_NAME]

Testing

Buildpacks use the Switchblade framework for running integration tests.

To test this buildpack, run the following command from the buildpack's directory:

  1. Run unit tests

    bash ./scripts/unit.sh

  2. Run integration tests

    bash ./scripts/integration.sh --github-token <token> --platform <cf|docker>

More information can be found on the switchblade repo.

Contributing

Find our guidelines here.

Help and Support

Join the #buildpacks channel in our Slack community if you need any further assistance.

Reporting Issues

Please fill out the issue template fully if you'd like to start an issue for the buildpack.

Acknowledgements

Inspired by the Heroku buildpack.

Extension points exported contracts — how you extend this code

Manifest (Interface)
(no doc) [2 implementers]
src/go/supply/supply.go
Installer (Interface)
(no doc) [2 implementers]
src/go/supply/supply.go
Command (Interface)
(no doc) [2 implementers]
src/go/finalize/finalize.go
Command (Interface)
(no doc) [2 implementers]
src/go/hooks/appdynamics.go
Stager (Interface)
(no doc)
src/go/supply/supply.go

Core symbols most depended-on inside this repo

Execute
called by 86
src/go/hooks/appdynamics.go
BuildDir
called by 25
src/go/finalize/finalize.go
SetInstallPackages
called by 25
src/go/finalize/finalize.go
SetupGoPath
called by 14
src/go/finalize/finalize.go
SelectVendorTool
called by 13
src/go/supply/supply.go
DepDir
called by 11
src/go/finalize/finalize.go
mainPackagePath
called by 10
src/go/finalize/finalize.go
WriteConfigYml
called by 8
src/go/supply/supply.go

Shape

Function 107
Method 87
Struct 22
Interface 6

Languages

Go100%

Modules by API surface

src/go/supply/mocks_test.go34 symbols
src/go/finalize/finalize.go26 symbols
src/go/supply/supply.go25 symbols
src/go/finalize/mocks_test.go22 symbols
src/go/hooks/appdynamics.go11 symbols
src/go/warnings/warnings.go7 symbols
src/go/hooks/hooks_debug.go5 symbols
src/go/brats/brats_suite_test.go5 symbols
src/go/data/data.go4 symbols
fixtures/mod/simple/site.go3 symbols
fixtures/go_toolchain/toolchain/site.go3 symbols
src/go/integration/init_test.go2 symbols

For agents

$ claude mcp add go-buildpack \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact