Skip to content
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

Darwin compilation panic #1

Open
Integralist opened this issue May 8, 2017 · 0 comments
Open

Darwin compilation panic #1

Integralist opened this issue May 8, 2017 · 0 comments

Comments

@Integralist
Copy link
Owner

When executing make install the container compiles the binaries, then copies the darwin binary into a local path on the host machine. It then removes the local compiled files.

During the compilation the darwin binary causes a panic when it comes to the flags.Check function, but it's unclear why that is, because when executing the compiled binary it appears to work fine.

Here is the relevant portion of the container stdout:

Step 9/9 : CMD ./compile.sh
 ---> Running in 763ec6976561
 ---> 0faf17810458
Removing intermediate container 763ec6976561
Successfully built 0faf17810458
Successfully tagged go-compiler:latest
Number of parallel builds: 1

-->   windows/amd64: _/go/src
-->     linux/amd64: _/go/src
-->    darwin/amd64: _/go/src
panic: runtime error: index out of range

goroutine 1 [running]:
flags.Check(0xc4200101d0, 0x0, 0x0, 0x1, 0x0, 0xc420011150)
        /go/src/flags/flags.go:104 +0x5bc
main.main()
        /go/src/fastly.go:97 +0x317
cp ./fastly.darwin "/usr/local/bin/fastly"

The error suggests an index is out of range, but that doesn't occur when running the binary.

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

1 participant