You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out the default golang:1.21-alpine is not bash either. It's busybox, and it doesn't even have a bash. Maybe use POSIX sh syntax only as a solution.
jingyuanliang
added a commit
to jingyuanliang/go-build-template
that referenced
this issue
Nov 10, 2023
So if the build image is switched to something with sh symlinked to others (eg. dash, in google-go.pkg.dev/golang), build fails.
We should consider removing bash-specific syntax, or declaring the shebang line as
#!/bin/bash
.The text was updated successfully, but these errors were encountered: