Skip to content

"Failed to build droplet release" when go.work exists #369

Description

@jameshochadel

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

"api_version":"2.202.0"
cf version 8.2.0+fd8fbca64.2022-02-09

What version of the buildpack you are using?
1.10.8

If you were attempting to accomplish a task, what was it you were attempting to do?

cf push a Go app that uses Go module workspaces. My app had a go.work in the root of the repository that looked like:

go 1.20

use (
	.
	./ci/acceptance
)

The app has a manifest like:

applications:
- command: run-app
  disk_quota: 256M
  env:
    GOPACKAGENAME: github.com/org/app
  memory: 256M
  name: app

What did you expect to happen?

The app is pushed and starts running.

What was the actual behavior?

The build output fails after downloading dependencies:

   -----> Running: go install -tags cloudfoundry -buildmode pie .
   go: downloading github.com/aws/aws-sdk-go v1.44.252
   (...)
   go: downloading golang.org/x/crypto v0.8.0
   Failed to build droplet release: buildpack's release output invalid: yaml: line 5: could not find expected ':'
   Exit status 224
BuildpackReleaseFailed - App staging failed in the buildpack release phase

When I remove the go.work file, the build completes like usual.

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions