Skip to content

goimports -local github.com/cortexproject/cortex -w pkg/ cmd/ tools/ #2106

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

Merged
merged 5 commits into from
Feb 10, 2020
Merged

goimports -local github.com/cortexproject/cortex -w pkg/ cmd/ tools/ #2106

merged 5 commits into from
Feb 10, 2020

Conversation

pstibrany
Copy link
Contributor

@pstibrany pstibrany commented Feb 10, 2020

Ran this command:

goimports -local github.com/cortexproject/cortex -w pkg/ cmd/ tools/

Also modified lint check to verify order of imports.

This was prompted by some recent feedback on PR I've authored.

goimports -local github.com/cortexproject/cortex does the trick.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Contributor

@jtlisi jtlisi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jtlisi jtlisi merged commit 748b5c1 into cortexproject:master Feb 10, 2020
@bboreham
Copy link
Contributor

I think we should write down the rules, e.g. in CONTRIBUTING.md.

E.g. why is weaveworks/common in a group separate to prometheus/common?
Or Thanos for that matter.

@pstibrany
Copy link
Contributor Author

I think we should write down the rules, e.g. in CONTRIBUTING.md.

E.g. why is weaveworks/common in a group separate to prometheus/common?
Or Thanos for that matter.

Noticed that too. I think goimports moved it to its own group, because it was in separate group before, but it can be moved together with 3rd party libs. I'll send follow-up PR with documentation change and 3 groups only (stdlib, 3rd party, cortex).

@pstibrany pstibrany deleted the imports-with-local branch March 6, 2020 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants