-
Notifications
You must be signed in to change notification settings - Fork 0
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
Remove mocks from .gitignore and generate them for required module. #54
Conversation
…aving mocks go: finding module for package github.com/ditointernet/go-dito/jwks/mocks go: finding module for package github.com/ditointernet/go-dito/http/mocks github.com/ditointernet/new-segments-service/cmd/rest_api imports github.com/ditointernet/go-dito/http/middleware/authentication tested by github.com/ditointernet/go-dito/http/middleware/authentication.test imports github.com/ditointernet/go-dito/http/mocks: module github.com/ditointernet/go-dito/http@latest found (v1.1.0), but does not contain package github.com/ditointernet/go-dito/http/mocks github.com/ditointernet/new-segments-service/cmd/rest_api imports github.com/ditointernet/go-dito/jwks tested by github.com/ditointernet/go-dito/jwks.test imports github.com/ditointernet/go-dito/jwks/mocks: module github.com/ditointernet/go-dito/jwks@latest found (v1.0.0), but does not contain package github.com/ditointernet/go-dito/jwks/mocks
Mismatch happened at interfac http.AuthorizatorClient ExecuteQuery method's return value and opa.AuthorizationResult type
🎉 This PR is included in version http-v1.1.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version jwks-v1.0.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version log-v1.0.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version opa-v1.0.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version trace-v1.0.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version http-v1.2.0-beta.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
After moving from
go-dito/lib/<module>
togo-dito/<module>
and runninggo mod tidy
on the projectnew-segments-service
, Go accuses some modules of not having a required and importedmocks
package. E.g.:To fix this, said modules need to provide the required package as well, because said error blocks users from even maintaining the program that requires them, as Go cannot run/build the program without first validating modules present in go.mod.