Failed to build Dockerfile
Sinderella opened this issue · 1 comments
Sinderella commented
Describe your Environment
OS: Linux
Paisa Version: master branch (62401a4)
App Variant: Docker
Describe the bug
Failed to build Dockerfile
To Reproduce
Build the image, and I've got the message below. Probably due to old version of go? Switching to go 1.21 does fix the error.
Expected behavior
Build the image successfully
Screenshots
I've got log instead.
=> ERROR [go 8/8] RUN CGO_ENABLED=1 go build 99.0s
------
> [go 8/8] RUN CGO_ENABLED=1 go build:
#0 98.03 # github.com/ananthakumaran/paisa/internal/ledger
#0 98.03 internal/ledger/ledger.go:394:28: undefined: max
#0 98.03 note: module requires Go 1.21
------
failed to solve: executor failed running [/bin/sh -c CGO_ENABLED=1 go build]: exit code: 1
Journal
n/a
ananthakumaran commented
Thanks for reporting, I upgraded go yesterday, seems like I missed the Dockerfile