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

test-nats/main.go fails to compile #200

Open
gedw99 opened this issue Jan 10, 2025 · 0 comments
Open

test-nats/main.go fails to compile #200

gedw99 opened this issue Jan 10, 2025 · 0 comments

Comments

@gedw99
Copy link

gedw99 commented Jan 10, 2025

Describe the bug

https://github.com/nabbar/golib/blob/master/test/test-nats/main.go will not run ..

SO that I can work on NATS Server cluster lame duck red green staggered upgrade flows.

Reproduce the bug/issue

go run -tags examples .

apple@192 test-nats % go run -tags examples .
# github.com/nabbar/golib/test/test-nats
./main.go:93:9: undefined: liblog.SetLevel
./main.go:93:25: undefined: liblog.InfoLevel
./main.go:94:9: undefined: liblog.EnableColor
./main.go:95:9: undefined: liblog.AddGID
./main.go:96:9: undefined: liblog.FileTrace
./main.go:109:33: not enough arguments in call to cfg.NatsOption
	have (nil)
	want (certificates.TLSConfig, "github.com/nabbar/golib/logger".Logger)
./main.go:110:14: err.GetErrorFull undefined (type error has no field or method GetErrorFull)
./main.go:112:14: err.CodeErrorTraceFull undefined (type error has no field or method CodeErrorTraceFull)
./main.go:114:34: not enough arguments in call to libnat.NewServer
	have (*"github.com/nats-io/nats-server/v2/server".Options)
	want (*"github.com/nats-io/nats-server/v2/server".Options, "github.com/nabbar/golib/monitor/types".Config)
./main.go:129:13: e.CodeErrorTraceFull undefined (type error has no field or method CodeErrorTraceFull)
./main.go:129:13: too many errors

Logs

No response

@gedw99 gedw99 changed the title https://github.com/nabbar/golib/blob/master/test/test-nats/main.go fails test-nats/main.go fails to compile Jan 10, 2025
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