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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Errors occured when execute flag install step #1350

Open
warjiang opened this issue Jul 4, 2024 · 0 comments
Open

[BUG] Errors occured when execute flag install step #1350

warjiang opened this issue Jul 4, 2024 · 0 comments
Labels
bug Something isn't working Needs Triage This issue needs to be investigated by a maintainer

Comments

@warjiang
Copy link

warjiang commented Jul 4, 2024

Observed behavior

I follow the step in section Go binary , links 馃憠馃徎 https://flagd.dev/installation/#summary
image
But some errors occured:
image
Here is the original errors:

go install github.com/open-feature/flagd/flagd@latest

# github.com/open-feature/flagd/flagd/pkg/service/flag-evaluation/ofrep
.gvm/pkgsets/go1.22.5/global/pkg/mod/github.com/open-feature/flagd/[email protected]/pkg/service/flag-evaluation/ofrep/handler.go:75:54: undefined: ofrep.BulkEvaluationContextError
.gvm/pkgsets/go1.22.5/global/pkg/mod/github.com/open-feature/flagd/[email protected]/pkg/service/flag-evaluation/ofrep/handler.go:80:22: assignment mismatch: 2 variables but h.evaluator.ResolveAllValues returns 1 value
.gvm/pkgsets/go1.22.5/global/pkg/mod/github.com/open-feature/flagd/[email protected]/pkg/service/flag-evaluation/ofrep/handler.go:84:47: too many arguments in call to ofrep.BulkEvaluationContextErrorFrom
	have (string, string)
	want ()
# github.com/open-feature/flagd/flagd/pkg/service/flag-sync
.gvm/pkgsets/go1.22.5/global/pkg/mod/github.com/open-feature/flagd/[email protected]/pkg/service/flag-sync/sync-multiplexer.go:166:14: assignment mismatch: 2 variables but r.store.GetAll returns 1 value
# github.com/open-feature/flagd/flagd/pkg/service/flag-evaluation
.gvm/pkgsets/go1.22.5/global/pkg/mod/github.com/open-feature/flagd/[email protected]/pkg/service/flag-evaluation/flag_evaluator.go:73:17: assignment mismatch: 2 variables but s.eval.ResolveAllValues returns 1 value
.gvm/pkgsets/go1.22.5/global/pkg/mod/github.com/open-feature/flagd/[email protected]/pkg/service/flag-evaluation/flag_evaluator.go:336:28: undefined: model.GetErrorMessage
.gvm/pkgsets/go1.22.5/global/pkg/mod/github.com/open-feature/flagd/[email protected]/pkg/service/flag-evaluation/flag_evaluator_v2.go:71:17: assignment mismatch: 2 variables but s.eval.ResolveAllValues returns 1 value

Expected Behavior

the flagd binary can be installed in the bin fold for go

Steps to reproduce

execute go install github.com/open-feature/flagd/flagd@latest

BTW, after diving into the code for the latest tag, which is [email protected]
image

the flagd use ofrep.BulkEvaluationContextError() in core pkg
image

But the core pkg doesn't contains ofrep.BulkEvaluationContextError() for version core/v0.9.3
image

ofrep.BulkEvaluationContextError() doesn't occurs in core pkg until for core/v0.10.0

So the main branch is right, but still now the lastet tag for github.com/open-feature/flagd/flagd is wrong

@warjiang warjiang added bug Something isn't working Needs Triage This issue needs to be investigated by a maintainer labels Jul 4, 2024
@warjiang warjiang changed the title Errors occured when execute flag install step [BUG] [BUG] Errors occured when execute flag install step Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs Triage This issue needs to be investigated by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant