Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
jameshochadel opened this issue Apr 28, 2023 · 0 comments
Open
3 tasks done

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

jameshochadel opened this issue Apr 28, 2023 · 0 comments

Comments

@jameshochadel
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants