fly-apps/fly-log-local

Deploy error: failed to fetch an image or build from source

Closed this issue · 1 comments

I get the following error when deploying the app with fly deploy:

Error: failed to fetch an image or build from source: error building: executor failed running [/bin/sh -c git clone https://github.com/grafana/loki.git     && cd loki     && make loki logcli]: exit code: 2

While building, the process stops with the following:

imports github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/container: build constraints exclude all Go files in /go/loki/vendor/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/container
#10 17.25 vendor/github.com/grafana/dskit/netutil/netutil.go:6:2: cannot find package "." in:
#10 17.25 	/go/loki/vendor/net/netip
#10 17.26 make: *** [Makefile:158: cmd/loki/loki] Error 1

Upgrading Golang to 1.18 as suggested in this pull request fixes it.