migtools / crane

Tool for migrating Kubernetes workloads, and their data, between clusters.
https://www.konveyor.io/tools/crane/
Apache License 2.0
40 stars 23 forks source link

[BUG] Unable to build the source code #162

Open debkantap opened 3 months ago

debkantap commented 3 months ago

What version of crane are you running, and what are your clutsters+platform crane-0.0.5 What did you expect to happen? build must happen with the below command: go build -o crane main.go

My go version is go version go1.22.3 windows/amd64 What actually happened? Error encountered Please include any relevant logs or errors

------error snippet --- go: downloading github.com/olekukonko/tablewriter v0.0.5 go: downloading github.com/ghodss/yaml v1.0.0 cmd\apply\apply.go:9:2: github.com/konveyor/crane-lib@v0.0.8: Get "https://proxy.golang.org/github.com/konveyor/crane-lib/@v/v0.0.8.zip": net/http: TLS handshake timeout internal\file\file_helper.go:11:2: github.com/sirupsen/logrus@v1.8.1: Get "https://proxy.golang.org/github.com/sirupsen/logrus/@v/v1.8.1.zip": net/http: TLS handshake timeout internal\file\file_helper.go:12:2: k8s.io/apimachinery@v0.24.2: Get "https://proxy.golang.org/k8s.io/apimachinery/@v/v0.24.2.zip": net/http: TLS handshake timeout internal\file\file_helper.go:13:2: sigs.k8s.io/yaml@v1.3.0: Get "https://proxy.golang.org/sigs.k8s.io/yaml/@v/v1.3.0.zip": net/http: TLS handshake timeout internal\flags\global_flags.go:5:2: github.com/spf13/cobra@v1.5.0: Get "https://proxy.golang.org/github.com/spf13/cobra/@v/v1.5.0.zip": net/http: TLS handshake timeout internal\flags\global_flags.go:6:2: github.com/spf13/viper@v1.12.0: Get "https://proxy.golang.org/github.com/spf13/viper/@v/v1.12.0.zip": net/http: TLS handshake timeout

TR Deb

github-actions[bot] commented 3 months ago

This issue is currently awaiting triage. If contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance. The triage/accepted label can be added by org members by writing /triage accepted in a comment.

debkantap commented 3 months ago

This is internet proxy related issue. Now I am able to run this command but executable not created, only one file gets created without any extension!! Pls refer below logs: BTW does it supports windows?

go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 go: downloading github.com/modern-go/reflect2 v1.0.2 go: downloading github.com/emicklei/go-restful v2.9.5+incompatible

C:\Deb\Working\Poc\crane\crane-0.0.5>crane 'crane' is not recognized as an internal or external command, operable program or batch file.

C:\Deb\Working\Poc\crane\crane-0.0.5>PATH=%PATH%:C:\Deb\Working\Poc\crane\crane-0.0.5

C:\Deb\Working\Poc\crane\crane-0.0.5>crane 'crane' is not recognized as an internal or external command, operable program or batch file.

TR deb