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

Requesting changes to be compatible with charmbracelet/bubbles >= v0.19.0 #179

Closed
nikklassen opened this issue Aug 21, 2024 · 7 comments · Fixed by #180
Closed

Requesting changes to be compatible with charmbracelet/bubbles >= v0.19.0 #179

nikklassen opened this issue Aug 21, 2024 · 7 comments · Fixed by #180
Labels
enhancement New feature or request

Comments

@nikklassen
Copy link

There was a recent change to charmbracelet's bubble (charmbracelet/bubbles#584) that changed a function signature to be generic. Since you are using key.Matches this library is no longer compatible with future versions of bubbles. Can we bump the Go version of this module, or change the usage of key.Matches? It looks like the charmbracelet libraries are on Go 1.18 now, so it probably makes sense to target that here too.

@Evertras Evertras added the enhancement New feature or request label Aug 22, 2024
@Evertras
Copy link
Owner

Hmmm good catch. Currently it's being tested and working on go 1.13 and up, but honestly I'd be very surprised if anyone needs to be as low as 1.17 at this point with this library. And with Bubble Tea itself bumping up, it's hard to argue that we need to support lower versions.

I'll take a look at sorting this out in the near future when I get some time.

@ashmckenzie
Copy link
Contributor

Thanks @nikklassen for the detail on the cause of the problem 🙇

I've created #180 which passes tests locally and works when I use in my local app.

@ashmckenzie
Copy link
Contributor

@nikklassen when you have a moment, would you mind testing https://github.com/ashmckenzie/bubble-table/tree/ashmckenzie/fix-bubbles-compatibility to see if it works for you?

You should be able to run just the following to try my fork:

go mod edit -replace github.com/evertras/bubble-table=github.com/ashmckenzie/bubble-table@e729cd674896514f0a6a2712b6274f6e229c0e5
go mod tidy

@nikklassen
Copy link
Author

I can try out the fix this weekend

@nikklassen
Copy link
Author

@ashmckenzie yup, looks good

@ashmckenzie
Copy link
Contributor

Thanks @nikklassen 👍

@Evertras
Copy link
Owner

Evertras commented Sep 1, 2024

Released as v0.17.0, thanks for the fix! Apologies for slowness, should be more around now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants