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

integrate Golangci-lint with localmodule enabled #196

Merged
merged 1 commit into from Mar 27, 2024
Merged

Conversation

daixiang0
Copy link
Owner

@daixiang0 daixiang0 commented Mar 27, 2024

Fix #195

GCI use analyzer.go to integrate with Golangci-lint, since Golangci-lint use modinfo to find mod path, GCI would do it in the same way.

Since localmodule section does not support recursive search, there is no different behaviors between Golangci-lint and GCI cmdline.

Signed-off-by: Loong <long0dai@foxmail.com>
@daixiang0 daixiang0 merged commit cf1fbd0 into master Mar 27, 2024
7 checks passed
@daixiang0 daixiang0 deleted the module branch March 27, 2024 06:45
codeboten pushed a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request Apr 11, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/daixiang0/gci](https://togithub.com/daixiang0/gci) |
`v0.13.1` -> `v0.13.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdaixiang0%2fgci/v0.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fdaixiang0%2fgci/v0.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fdaixiang0%2fgci/v0.13.1/v0.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdaixiang0%2fgci/v0.13.1/v0.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>daixiang0/gci (github.com/daixiang0/gci)</summary>

### [`v0.13.3`](https://togithub.com/daixiang0/gci/releases/tag/v0.13.3)

[Compare
Source](https://togithub.com/daixiang0/gci/compare/v0.13.2...v0.13.3)

#### What's Changed

- go.mod: remove toolchain for backwards compatible by
[@&#8203;daixiang0](https://togithub.com/daixiang0) in
[daixiang0/gci#199
- bump up version by [@&#8203;daixiang0](https://togithub.com/daixiang0)
in
[daixiang0/gci#200

**Full Changelog**:
daixiang0/gci@v0.13.2...v0.13.3

### [`v0.13.2`](https://togithub.com/daixiang0/gci/releases/tag/v0.13.2)

[Compare
Source](https://togithub.com/daixiang0/gci/compare/v0.13.1...v0.13.2)

#### What's Changed

- integrate Golangci-lint with localmodule enabled by
[@&#8203;daixiang0](https://togithub.com/daixiang0) in
[daixiang0/gci#196
- bump up to 0.13.2 by
[@&#8203;daixiang0](https://togithub.com/daixiang0) in
[daixiang0/gci#197

**Full Changelog**:
daixiang0/gci@v0.13.1...v0.13.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
rimitchell pushed a commit to rimitchell/opentelemetry-collector-contrib that referenced this pull request May 8, 2024
…lemetry#32087)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/daixiang0/gci](https://togithub.com/daixiang0/gci) |
`v0.13.1` -> `v0.13.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdaixiang0%2fgci/v0.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fdaixiang0%2fgci/v0.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fdaixiang0%2fgci/v0.13.1/v0.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdaixiang0%2fgci/v0.13.1/v0.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>daixiang0/gci (github.com/daixiang0/gci)</summary>

### [`v0.13.3`](https://togithub.com/daixiang0/gci/releases/tag/v0.13.3)

[Compare
Source](https://togithub.com/daixiang0/gci/compare/v0.13.2...v0.13.3)

#### What's Changed

- go.mod: remove toolchain for backwards compatible by
[@&open-telemetry#8203;daixiang0](https://togithub.com/daixiang0) in
[daixiang0/gci#199
- bump up version by [@&open-telemetry#8203;daixiang0](https://togithub.com/daixiang0)
in
[daixiang0/gci#200

**Full Changelog**:
daixiang0/gci@v0.13.2...v0.13.3

### [`v0.13.2`](https://togithub.com/daixiang0/gci/releases/tag/v0.13.2)

[Compare
Source](https://togithub.com/daixiang0/gci/compare/v0.13.1...v0.13.2)

#### What's Changed

- integrate Golangci-lint with localmodule enabled by
[@&open-telemetry#8203;daixiang0](https://togithub.com/daixiang0) in
[daixiang0/gci#196
- bump up to 0.13.2 by
[@&open-telemetry#8203;daixiang0](https://togithub.com/daixiang0) in
[daixiang0/gci#197

**Full Changelog**:
daixiang0/gci@v0.13.1...v0.13.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
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.

Rework module detection for golangci-lint integration
1 participant