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

fix minor misplacement #98

Merged

Conversation

vMaroon
Copy link
Contributor

@vMaroon vMaroon commented Mar 1, 2022

Signed-off-by: Maroon Ayoub maroon.ayoub@ibm.com

Signed-off-by: Maroon Ayoub <maroon.ayoub@ibm.com>
@openshift-ci openshift-ci bot requested review from jnpacker and xiangjingli March 1, 2022 22:13
@mikeshng
Copy link
Member

mikeshng commented Mar 1, 2022

/lgtm

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 1, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mikeshng, vMaroon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Mar 1, 2022
@mikeshng
Copy link
Member

mikeshng commented Mar 2, 2022

The lint error is regarding

pkg/utils/gitrepo.go:262: File is not `gofmt`-ed with `-s` (gofmt)

So maybe you didn't use a code editor like Visual Studio Code that automates the source files.
You can run gofmt gitrepo.go and copy the output and recommit and repush.

You can run make lint locally to check if it passes the lint first.

@openshift-ci openshift-ci bot removed the lgtm label Mar 7, 2022
@vMaroon
Copy link
Contributor Author

vMaroon commented Mar 7, 2022

@mikeshng my installed linter versions are stricter (e.g.,:

pkg/subscriber/git/git_subscriber.go:108:3: S1002: should omit comparison to bool constant, can be simplified to `*subitem.Subscription.Spec.Placement.HubOfHubsGitOps` (gosimple)
		*subitem.Subscription.Spec.Placement.HubOfHubsGitOps == true {
		^
pkg/controller/mcmhub/mcmhub_controller.go:854:18: `o` can be `k8s.io/klog/v2.KMetadata` (interfacer)
	return value[adjustedPos:]

do I have to reconfigure versions or is it ok not to?

@mikeshng
Copy link
Member

mikeshng commented Mar 7, 2022

It's still just complaining about

golangci/golangci-lint info installed /home/runner/work/multicloud-operators-subscription/multicloud-operators-subscription/go/bin/golangci-lint
pkg/utils/gitrepo.go:262: File is not `gofmt`-ed with `-s` (gofmt)

If all the other tests passed again. I will manually merge this and we will fix it later.
Thank you once again for your contribution.

Signed-off-by: Mike Ng <ming@redhat.com>
@mikeshng
Copy link
Member

mikeshng commented Mar 7, 2022

@vMaroon maybe we can try this:
vMaroon#1
Could you please merge my PR to your branch and then we can run the GitHub actions CICD again?
Thanks.

@mikeshng
Copy link
Member

mikeshng commented Mar 7, 2022

/lgtm

Thanks again

@openshift-ci openshift-ci bot added the lgtm label Mar 7, 2022
@openshift-merge-robot openshift-merge-robot merged commit a6fa043 into open-cluster-management-io:main Mar 7, 2022
@vMaroon vMaroon deleted the patch-1 branch March 7, 2022 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants