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

Building for darwin #3

Open
peddyhh opened this issue Dec 3, 2021 · 1 comment
Open

Building for darwin #3

peddyhh opened this issue Dec 3, 2021 · 1 comment

Comments

@peddyhh
Copy link

peddyhh commented Dec 3, 2021

Hello,

I want to play with you tool and it would be nice to use it on a mac (darwin).
I'm not so familiar with go, so run in trouble, when I tried:
go build cli/main.go

When I start the the binary "./main" I got:


─> ./main
init: statik/fs: no zip data registered
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1315527]

goroutine 1 [running]:
github.com/nmasse-itix/keycloak-realm-import.getTemplate({0x0, 0x0}, {0x145fb2a, 0x9})
	/Users/petersa/git/zz_privat/keycloak/keycloak-import-realm/generate.go:112 +0x47
github.com/nmasse-itix/keycloak-realm-import.init.0()
	/Users/petersa/git/zz_privat/keycloak/keycloak-import-realm/generate.go:60 +0xbb

Maybe you can help me out?

@nmasse-itix
Copy link
Owner

Sorry for the late response.

To compile the application from sources, you can run the following commands:

export GOPATH="$HOME/go"
export GOBIN="$GOPATH/bin"
export PATH="$GOBIN:$PATH"
go install github.com/rakyll/statik
go generate ./...
go build -o kci cli/main.go

For future releases, I will update my CI pipelines to build the kci cli for darwin.

Hope it helps !

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

2 participants