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

Update dependencies for first release of the Compass Manager #57

Merged
merged 5 commits into from
Dec 1, 2023

Conversation

mvshao
Copy link
Contributor

@mvshao mvshao commented Dec 1, 2023

Description

Changes proposed in this pull request:

  • bump dependencies (including Lifecycle Manager and Controller Runtime)
  • bump Github Action (linter)

@mvshao mvshao requested a review from a team as a code owner December 1, 2023 10:25
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 1, 2023
@@ -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
Copy link
Member

@Disper Disper Dec 1, 2023

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?

Copy link
Contributor Author

@mvshao mvshao Dec 1, 2023

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.

Copy link
Member

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.

@kyma-bot kyma-bot added the lgtm Looks good to me! label Dec 1, 2023
@mvshao mvshao merged commit c172b43 into kyma-project:main Dec 1, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants