Hi, trying to work on a <PR>; forked the `flyte` r...
# contribute
s
Hi, trying to work on a PR; forked the
flyte
repo and following the contribution guide (so far installing Go and running the k3s demo environment). When running
make compile
(macOS 14.2.1, ARM,
go version go1.19 darwin/arm64
) I’m hitting this error with no further explanation:
Copy code
Makefile:130: warning: overriding commands for target `go-tidy'
boilerplate/flyte/golang_test_targets/Makefile:60: warning: ignoring old commands for target `go-tidy'
script/get_flyteconsole_dist.sh
++ uname -m
+ ARCH=arm64
+ case ${ARCH} in
+ IMAGE_ARCH=arm64
+ FLYTECONSOLE_IMAGE=ghcr.io/flyteorg/flyteconsole:latest
++ docker manifest inspect --verbose ghcr.io/flyteorg/flyteconsole:latest
++ jq --arg IMAGE_ARCH arm64 --raw-output '.[] | select(.Descriptor.platform.architecture == $IMAGE_ARCH) | .Descriptor.digest'
+ IMAGE_DIGEST=sha256:ee26ebe10c54aa24a755c43d275c3ce00d8be6fa090d88875fb5fc6c05903728
+ '[' -f cmd/single/dist/.digest ']'
+ grep -Fxq sha256:ee26ebe10c54aa24a755c43d275c3ce00d8be6fa090d88875fb5fc6c05903728 cmd/single/dist/.digest
+ exit 0
go build -tags console -v -o flyte -ldflags="-s -w -X github.com/flyteorg/flytestdlib/version.Version=cb57beb00 -X github.com/flyteorg/flytestdlib/version.Build=cb57beb00 -X github.com/flyteorg/flytestdlib/version.BuildTime=2024-05-08" ./cmd/
google.golang.org/protobuf/internal/flags
google.golang.org/grpc/serviceconfig
github.com/jackc/puddle/v2/internal/genstack
go.opentelemetry.io/otel/metric/embedded
go.opentelemetry.io/otel/trace/embedded
... (huge list)
github.com/flyteorg/flyte/datacatalog/pkg/repositories
github.com/flyteorg/flyte/datacatalog/pkg/repositories/transformers
github.com/flyteorg/flyte/flyteadmin/pkg/async/schedule/noop
github.com/flyteorg/flyte/datacatalog/pkg/manager/impl
github.com/flyteorg/flyte/datacatalog/pkg/rpc/datacatalogservice
make: *** [compile] Error 2
Also when running `make go-tidy`:
Copy code
Makefile:130: warning: overriding commands for target `go-tidy'
boilerplate/flyte/golang_test_targets/Makefile:60: warning: ignoring old commands for target `go-tidy'
go mod tidy
go: go.mod file indicates go 1.21, but maximum version supported by tidy is 1.19
make: *** [go-tidy] Error 1
a
cc @damp-lion-88352
d
Try this go version go1.21.6 darwin/arm64
I didn't face any issue with go1.21.6
s
Thanks, I’m now on
1.21.10
which seems to work, except for the
mv ./flyte …
which fails on macOS (also with sudo) due to it being a system directory; manually moving it to a directory on my PATH worked. Thanks for the help 👍 (maybe in the Onboarding docs there should not be such an explicit mention of requirement on go 1.19?)
d
no problem
we should change the version
thank you for the advice ❤️
s
Unfortunately running into another error. k3s demo cluster comes up,
make compile
seems to succeed and I’m running
POD_NAMESPACE=flyte ./flyte start --config flyte-single-binary-local.yaml
(no obvious errors, just a lot of logs), but then when accessing
localhost:30080/console
in the browser:
Copy code
upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: delayed connect error: 111
I guess I need to start flyteconsole locally as well? Trying that now
That’s giving errors as well..
d
Did you use ‘flytectl demo start —dev’?
You have to do it first
s
Yes the cluster and flyte Pods were all
Running
, there was no
flyteconsole
there so tried to run that locally and then hit a connection issue. Maybe it was due to restarting, not sure, but tried
yarn start
in the flyteconsole repo today and it now spun up a UI. Hope/think I can proceed with this 👍 Thanks!
d

https://youtu.be/V-KlVQmQAjE?si=5bqILHZBFKMkpH9z

Can you help me try out this vid?
You don't need to use
yarn start