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

[Bug]: kafka uses MaxInt64, prevents 32-bit usage #1921

Closed
powersj opened this issue Nov 15, 2023 · 0 comments · Fixed by #1923
Closed

[Bug]: kafka uses MaxInt64, prevents 32-bit usage #1921

powersj opened this issue Nov 15, 2023 · 0 comments · Fixed by #1923
Labels
bug An issue with the library

Comments

@powersj
Copy link
Contributor

powersj commented Nov 15, 2023

Testcontainers version

0.26.0

Using the latest Testcontainers version?

Yes

Host OS

linux

Host arch

i386

Go version

1.21.4

Docker version

n/a

Docker info

n/a

What happened?

Running go vet with program that imports github.com/testcontainers/testcontainers-go/modules/kafka on 32-bit environment.

See: https://app.circleci.com/pipelines/github/influxdata/telegraf/18935/workflows/552535d3-8378-43eb-a37d-781756d50128/jobs/290322

Relevant log output

# github.com/testcontainers/testcontainers-go/modules/kafka
/go/pkg/mod/github.com/testcontainers/testcontainers-go/modules/kafka@v0.26.0/kafka.go:55:72: cannot use math.MaxInt64 (untyped int constant 9223372036854775807) as int value in argument to fmt.Sprintf (overflows)

Additional information

Could either switch to math.MaxInt or tell me no 32-bit support and we can use build tags.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant