devfile / api

Kube-native API for cloud development workspaces specification
Apache License 2.0
235 stars 58 forks source link

Build command in `Go Runtime` devfile fails #1490

Closed tolusha closed 1 month ago

tolusha commented 1 month ago

Which area this feature is related to?

/kind bug

Which area this bug is related to?

/area registry

Bug Summary

Describe the bug:

Build command in Go Runtime devfile fails

$ go build main.go
failed to initialize build cache at /opt/app-root/src/.cache/go-build: mkdir /opt/app-root/src/.cache: permission denied

To Reproduce:

  1. Start a workspace from Go runtime devfile.
  2. Run build command

Expected behavior

Build command successfully completed.

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable

Additional context

N/A

Any workaround?

export HOME=/home/user

Suggestion on how to fix the bug

N/A