-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update dependencies for first release of the Compass Manager #57
Conversation
@@ -6,8 +6,8 @@ import ( | |||
|
|||
"github.com/kyma-project/compass-manager/api/v1beta1" | |||
kyma "github.com/kyma-project/lifecycle-manager/api/v1beta2" | |||
. "github.com/onsi/ginkgo/v2" | |||
. "github.com/onsi/gomega" | |||
. "github.com/onsi/ginkgo/v2" //nolint:revive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand what could be wrong with this line. Could you elaborate why linter check was failing here and it had to be ignored?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was failing because dot import. In most cases (e.g main files) that is bad practice to use this kind of import. But in Go test, if the programmer knows how dot imports work that could be allowed.
In our case, we can remove .
and replace it with any name we want. But after that, we need to add that name before any function call exported from that package (e.g Describe(), It(), By(), Expect() ). Such a way will make the main loops of the program less readable and transparent. So that is why I chose that approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Sounds reasonable to me.
Description
Changes proposed in this pull request: