lrstanley / bubblezone

helper utility for BubbleTea, allowing easy mouse event tracking
https://pkg.go.dev/github.com/lrstanley/bubblezone
MIT License
537 stars 17 forks source link

bug: [undefined: atomic.Bool ] #9

Closed Program-repo closed 2 years ago

Program-repo commented 2 years ago

🌧 Describe the problem

When I attend to run the full-lipgloss example, I got the following error message:

github.com/lrstanley/bubblezone

../go/pkg/mod/github.com/lrstanley/bubblezone@v0.0.0-20221015234447-8db0faca329d/manager.go:54:17: undefined: atomic.Bool

β›… Expected behavior

I expect to run the full test

πŸ”„ Minimal reproduction

1 in my directory full-lipgloss I have the following files: dialog.go go.mod go.sum history.go list.go main.go tabs.go util.go 2 Then I run go run . and I got the error message

πŸ’  Version: bubblezone

github.com/lrstanley/bubblezone v0.0.0-20221015234447-8db0faca329d h1:cYNT20vgHPsn7fK6cx/zy3iCaPnlcztWDerhx4iPTZ8= github.com/lrstanley/bubblezone v0.0.0-20221015234447-8db0faca329d/go.mod h1:u+P0PRRatV4IhcL0LncRZAew9nlYvTQvgYbEu5h1iw0= g

πŸ–₯ Version: Operating system

linux/other

βš™ Additional context

I am running linux debian 11 in a Pixelbook . go version is go1.18.7 linux/amd64

🀝 Requirements

lrstanley commented 2 years ago

This is due to atomic.Bool being added in Go 1.19. I'll bump the required Go version in the go.mod file as well to make it more clear that Go 1.19 will be required moving forward.

If you are unable to update your Go version, the last version that supports Go 1.18 can be pulled via this command (was just a week or so ago that I added the new 1.19 requirement):

$ go get github.com/lrstanley/bubblezone@fc2e2a5f029495535fe32183ec6110b2aba2692b
lrstanley commented 2 years ago

Pinning to a minimum of Go 1.19 added in https://github.com/lrstanley/bubblezone/commit/b3469cc5a65953ac7af1d38bf6ba5391eba93751.

Program-repo commented 2 years ago

Most appreciated Liam!On Oct 29, 2022 7:33 p.m., Liam Stanley @.***> wrote: Closed #9 as completed.

β€”Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>