Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Fly Darwin Go Version #230

Closed
ElfoLiNk opened this issue May 31, 2018 · 1 comment
Closed

Fly Darwin Go Version #230

ElfoLiNk opened this issue May 31, 2018 · 1 comment

Comments

@ElfoLiNk
Copy link

ElfoLiNk commented May 31, 2018

Fly darwin binary should be compiled with the latest go 1.10 release due to this bug in golang golang/go#23995

./fly_darwin_amd64  login -t main  -c  https://fqdn/  --ca-cert=cert.crt --verbose

error: CA Cert not valid
/Users/mgazzetta/go/bin/dlv exec fly_darwin_amd64
Type 'help' for list of commands.
(dlv) b main.main
Breakpoint 1 set at 0x1529758 for main.main() /Users/pilot/Worker/workdir/volumes/live/d90e7cf1-a945-490e-6be2-8c55ffaf863f/volume/concourse/src/github.com/concourse/fly/main.go:26
(dlv) c
> main.main() /Users/pilot/Worker/workdir/volumes/live/d90e7cf1-a945-490e-6be2-8c55ffaf863f/volume/concourse/src/github.com/concourse/fly/main.go:26 (hits goroutine(1):1 total:1) (PC: 0x1529758)
Warning: debugging optimized function
(dlv) p runtime.buildVersion
"go1.10"
(dlv) exit

Linux binary works as expected since is built with go >= 1.10.2

@cirocosta
Copy link
Contributor

cirocosta commented Oct 1, 2018

Hey @ElfoLiNk ,

Thanks for submitting the issue!

With the new release, we're on go1.11:

curl -SOL https://github.com/concourse/concourse/releases/download/v4.2.1/fly_darwin_amd64

dlv exec ./fly_darwin_amd64
Type 'help' for list of commands.
(dlv) break main.main
Breakpoint 1 set at 0x14be2f3 for main.main() /Users/DX261/work-dir/volumes/live/f2a878af-8ddf-4880-6713-3ac324b91dcb/volume/concourse/src/github.com/concourse/fly/main.go:15
(dlv) continue
> main.main() /Users/DX261/work-dir/volumes/live/f2a878af-8ddf-4880-6713-3ac324b91dcb/volume/concourse/src/github.com/concourse/fly/main.go:15 (hits goroutine(1):1 total:1) (PC: 0x14be2f3)
Warning: debugging optimized function
(dlv) ls
> main.main() /Users/DX261/work-dir/volumes/live/f2a878af-8ddf-4880-6713-3ac324b91dcb/volume/concourse/src/github.com/concourse/fly/main.go:15 (hits goroutine(1):1 total:1) (PC: 0x14be2f3)
Warning: debugging optimized function
Command failed: open /Users/DX261/work-dir/volumes/live/f2a878af-8ddf-4880-6713-3ac324b91dcb/volume/concourse/src/github.com/concourse/fly/main.go: no such file or directory
(dlv) print runtime.buildVersion
"go1.11"

Please let us know if you still face any problems.

Thx!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants