Golang & a-h/templ not building
ezlosswm
HOBBYOP

a year ago

I've been trying to deploy this app, it's using Golang, Postgres, HTMX, Tailwind & the a-h/templ package but keep getting this error

#16 ERROR: process "/bin/bash -ol pipefail -c go build -o out" did not complete successfully: exit code: 1

[stage-0 8/8] RUN --mount=type=cache,id=s/fe558fc5-c9f6-4eb1-826d-5f474af5e16f-/root/cache/go-build,target=/root/.cache/go-build go build -o out:

0.111 no Go files in /app

Dockerfile:23

21 | # build phase
22 | COPY . /app/.
23 | >>> RUN --mount=type=cache,id=s/fe558fc5-c9f6-4eb1-826d-5f474af5e16f-/root/cache/go-build,target=/root/.cache/go-build go build -o out
24 |

25 |

ERROR: failed to solve: process "/bin/bash -ol pipefail -c go build -o out" did not complete successfully: exit code: 1

Error: Docker build failed

here is the link to my github repo
https://github.com/ezlosswm/bayside-buzz

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

1 Replies

a year ago

Sorry for the late reply here, but looks like you fixed your issue and got it to deploy, going to mark as solved, but feel free to re-open if you have any more questions!


Status changed to Solved brody about 1 year ago


Loading...