Build your Golang code with Go Modules

You can now build your go projects with go modules! Please take a look at our Go modules documentation.

At the begining of Go's adoption, the build tools available were goinstall and then go get. It worked simply, but versioning was not managed. Developers started vendoring libs, it started to be a bit messy. The Go community addressed this problem with different third-party builds and dependencies management tools. And then came the official answer from the Go team: Go Modules. And we support it on Clever Cloud \o/.

How to Deploy

The default build tool is still go get. So to choose go modules you will need the following environment variable: CC_GO_BUILD_TOOL=gomod

Please make sure your go.mod file is at the root of your repository alongside main.go. If you have a different entrypoint you can specify it with the environment variable CC_GO_PKG=./path/to/entrypoint.go

If you follow those two advices, everything should go well and you will have your deployed go application on Clever Cloud. We hope you will enjoy using it. Please let us know if you have any other suggestions to make our golang support better.

Happy coding!

Blog

À lire également

How We Deployed a Vinext Application in Minutes on Clever Cloud with AI

Cloudflare has just announced Vinext, a drop-in replacement for Next.js built on Vite. The project is vibecoded, experimental, but the promise is compelling: builds up to 4x faster, bundles 57% lighter, and 94% coverage of the Next.js API. We wanted to see how easy it would be to deploy it on Clever Cloud.
Engineering

New IAM feature: what our Managed Keycloak offers today

Since its launch, Keycloak as a Service has evolved significantly to meet the concrete needs of businesses and the requirements of operating IAM at scale.
Engineering

Clever Cloud to be heard by the National Assembly’s Law Committee in the context of the bill on securing Digital Public Procurement

Nantes, 16 February 2026 – Clever Cloud is honoured to be heard on 20 February 2026 before the Law Committee of the French National Assembly as part of the examination of Bill No. 2258 on securing digital public procurement, adopted by the Senate.
Company Press