8000 Delve support for darwin/amd64 · Issue #406 · beego/bee · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Delve support for darwin/amd64 #406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dylanlyu opened this issue Apr 5, 2017 · 13 comments
Closed

Delve support for darwin/amd64 #406

dylanlyu opened this issue Apr 5, 2017 · 13 comments

Comments

@dylanlyu
Copy link
dylanlyu commented Apr 5, 2017

i try
go get -u github.com/beego/bee
and
bee version

[bee]$ bee version
Killed: 9
[bee]$

try go get github.com/beego/bee reinstall.
The result is the same
but git change commit to 69023e9 this version.
is fine and is work.

[bee]$ go install
[bee]$ bee version
______
| ___ \
| |_/ /  ___   ___
| ___ \ / _ \ / _ \
| |_/ /|  __/|  __/
\____/  \___| \___| v1.8.0

├── Beego     : 1.8.0
├── GoVersion : go1.8
├── GOOS      : darwin
├── GOARCH    : amd64
├── NumCPU    : 4
├── GOPATH    : /Users/dylan/.go:/Users/dylan/goProject
├── GOROOT    : /usr/local/opt/go/libexec
├── Compiler  : gc
└── Date      : Wednesday, 5 Apr 2017
[bee]$

I guess it should be delve question.
Is there any idea of this problem?

@amrfaissal
Copy link
Collaborator

@dylanlyu This is the same as #399. Can you please give the fix a try and let me know if it working for you? Thanks.

@dylanlyu
Copy link
Author
dylanlyu commented Apr 5, 2017

is work.but bee dlv not Unknown

[bee]$ go install
[bee]$ bee version
______
| ___ \
| |_/ /  ___   ___
| ___ \ / _ \ / _ \
| |_/ /|  __/|  __/
\____/  \___| \___| v1.8.1

├── Beego     : 1.8.0
├── GoVersion : go1.8
├── GOOS      : darwin
├── GOARCH    : amd64
├── NumCPU    : 4
├── GOPATH    : /Users/dylan/.go:/Users/dylan/goProject
├── GOROOT    : /usr/local/opt/go/libexec
├── Compiler  : gc
└── Date      : Wednesday, 5 Apr 2017
[bee]$ bee dlv
bee: Unknown subcommand.
Use bee help for more information.
[bee]$ 

I guess it should be related to the certificate
https://github.com/derekparker/delve/tree/master/Documentation/installation

@amrfaissal
Copy link
Collaborator
8000 amrfaissal commented Apr 5, 2017

Delve support for darwin/amd64 have some problems and I don't think its fully supported. Currently, bee dlv works only for windows/amd64 and linux/amd64.

@amrfaissal amrfaissal changed the title The last bee version does not work. Bee version 1.8.1 Delve support for darwin/amd64 Apr 5, 2017
@dylanlyu
Copy link
Author
dylanlyu commented Apr 5, 2017

It seems irrelevant to the certificate.
I not know.
Maybe you're right

amrfaissal added a commit that referenced this issue Apr 7, 2017
Adds support for darwin/amd64 platforms but requires cgo
for cross compilation.
@amrfaissal
Copy link
Collaborator

@dylanlyu Delve do support darwin/amd64 platforms. I'll attach the binaries to the pull request and I'd really appreciate if you can give it a test as I don't have an OSX machine.

@amrfaissal
Copy link
Collaborator

@astaxie Delve requires cgo for cross compilation. I tried to use goxc but It requires to change C Toolchain every time and for each platform. I came across this tool: https://github.com/karalabe/xgo which abstracts the complexity inside a Docker container. It generates the binaries without a problem but It doesn't bundle them in zip files and push them to Github. What do you think? I've modified the Makefile to use xgo directly but it only generates the binaries.

@dylanlyu
Copy link
Author
dylanlyu commented Apr 8, 2017

Hi,
this develop branch is error!

[bee]$ bee
Killed: 9

Maybe this commit d9306e9

@astaxie
Copy link
Member
astaxie commented Apr 8, 2017

@dylanlyu please update your Go version to 1.8.1. This issue caused by XCode 8.3 golang/go#19734

@dylanlyu
Copy link
Author

is work!
Delve is work!

@astaxie
Copy link
Member
astaxie commented Apr 24, 2017

@amrfaissal I just find these tools to replace goxc

  1. https://github.com/karalabe/xgo to cross compile which support cgo
  2. https://github.com/tcnksm/ghr upload release binary

@amrfaissal
Copy link
Collaborator

@astaxie Nice 👍

@wuceyang
Copy link
wuceyang commented May 13, 2017

1.8.1 dose not work

@amrfaissal
Copy link
Collaborator

@wuceyang Make sure you have the latest version. Did you try: go get -u github.com/beego/bee?

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

No branches or pull requests

4 participants
0