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

Why fsm code not update to the latest version #91

Open
CmderQ opened this issue Oct 2, 2022 · 3 comments
Open

Why fsm code not update to the latest version #91

CmderQ opened this issue Oct 2, 2022 · 3 comments

Comments

@CmderQ
Copy link

CmderQ commented Oct 2, 2022

Hi, I see you example :

fsm

When run the demo , it errors:

image

So I look the code , found the callback :

type Callback func(*Event)

But the latest version, the callback :

type Callback func(context.Context, *Event)

So I try to update the code to the latest version:

image

But it not work

@GuessWhoSamFoo
Copy link

GuessWhoSamFoo commented Oct 8, 2022

What version is referenced in go.mod? I'm going to guess it was v0.3.0 which was before the contexts were added.

go get -u github.com/looplab/fsm@3637340ce5e584a1ff164a85c477f31ad58bb33d or whichever preferred gitref should update the import.

@maxekman
Copy link
Member

maxekman commented Oct 9, 2022

I will release a new version as soon as I’m able.

@xujinguang
Copy link

need release a new version

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