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

Fail to run the tests #54

Open
Hywan opened this issue Aug 28, 2024 · 1 comment · May be fixed by #55
Open

Fail to run the tests #54

Hywan opened this issue Aug 28, 2024 · 1 comment · May be fixed by #55

Comments

@Hywan
Copy link

Hywan commented Aug 28, 2024

Hello,

I've found a bug in uniffi-bindgen-go and I'm trying to run the tests locally.

From a fresh clone (with submodule):

$ ./docker_build.sh
# … all good…
$ ./docker_test_bindings.sh
…
++ cd .
++ pwd
+ SCRIPT_DIR=/mounted_workdir
+ ROOT_DIR=/mounted_workdir
+ BINDINGS_DIR=/mounted_workdir/binding_tests
+ BINARIES_DIR=/mounted_workdir/target/debug
+ pushd /mounted_workdir/binding_tests
/mounted_workdir/binding_tests /mounted_workdir
+ LD_LIBRARY_PATH=:/mounted_workdir/target/debug
+ CGO_LDFLAGS='-luniffi_fixtures -L/mounted_workdir/target/debug -lm -ldl'
+ CGO_ENABLED=1
+ go test -v
# github.com/NordSecurity/uniffi-bindgen-go/binding_tests
arithmetic_test.go:10:2: no required module provides package github.com/NordSecurity/uniffi-bindgen-go/binding_tests/generated/arithmetic; to add it:
        go get github.com/NordSecurity/uniffi-bindgen-go/binding_tests/generated/arithmetic
FAIL    github.com/NordSecurity/uniffi-bindgen-go/binding_tests [setup failed]

I'm following the steps from the CONTRIBUTING.md file, which are the same as on your CI, but sadly it doesn't work. I'm not familiar with Go, any help you'll be welcome.

@Hywan Hywan linked a pull request Aug 28, 2024 that will close this issue
@Hywan
Copy link
Author

Hywan commented Aug 28, 2024

The Go version in the Docker image is 1.19. On your CI, it's 1.20. It seems to be the problem. Fixed by #55.

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

Successfully merging a pull request may close this issue.

1 participant