-
Notifications
You must be signed in to change notification settings - Fork 75
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
Circular dependency with testify #124
Comments
Can you elaborate on why this needs fixing? Did you run into any issues? |
Just a go.sum eyesore that's all. For some reason golang don't prevent module circular dependency but does at the package level. |
It also makes snyk complain about security issues (these issues should be gone from testify 1.8.0): |
facing the same problem of @gildas on a Snyk pipeline. |
created a new release |
thank you so much @geseq. just a question, the old version of objx still be used by testify 1.8.0, and by that, indirectly, is using a vulnerable version of the
Vulnerability found here: Is threre any schedule for dependabot to run and update it? |
Sorry I have no idea. You’d have to ask this in the testify repo |
I created this issue in the testify repo: stretchr/testify#1292. Currently here in objx, the bump to testify 1.8.1 is after the v0.5.0 tag:
|
I was able to solve this by adding this to my
|
To the maintainer: would you accept a PR that would drop the use of |
In go.mod exclude the previous of testify to break the dependency cycle. Fixes stretchr#124 and stretchr/testify#1292 (once testify upgrades). go mod edit -exclude=github.com/stretchr/[email protected] go mod tidy
I found an easier way to help Go break the cycle. See #140. Thanks to @westy92 and @mgibson-r7. |
objx requires github.com/stretchr/testify v1.7.1
github.com/stretchr/testify requires objx v0.4.0
Would be cool if it could be avoided. No other reason in particular.
The text was updated successfully, but these errors were encountered: