Skip to content

Conversation

@marckhouzam
Copy link
Collaborator

@marckhouzam marckhouzam commented Nov 14, 2025

It seems that with the v2.6.1 version of golangci-lint, govet is too agressive about removing the old "// +build" tag.
We need to keep the old "+build" syntax because Cobra still allows to use a Go version as old as 1.15.

You can see the failure currently happening in #2325

We need to keep the old "+build" syntax because Cobra still allows to
use a Go version as old as 1.15.

Signed-off-by: Marc Khouzam <[email protected]>
@marckhouzam marckhouzam modified the milestones: 1.10.0, 1.11.0 Nov 14, 2025
Copy link
Collaborator

@jpmcb jpmcb left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks Marc!

@marckhouzam marckhouzam merged commit 0629892 into spf13:main Nov 14, 2025
21 checks passed
@marckhouzam marckhouzam deleted the marck/fixLinter branch November 14, 2025 14:02
arthurzam pushed a commit to gentoo-golang-dist/forgejo-runner that referenced this pull request Jan 18, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [github.com/spf13/cobra](https://github.com/spf13/cobra) | `v1.10.1` -> `v1.10.2` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fspf13%2fcobra/v1.10.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fspf13%2fcobra/v1.10.1/v1.10.2?slim=true) |

---

### Release Notes

<details>
<summary>spf13/cobra (github.com/spf13/cobra)</summary>

### [`v1.10.2`](https://github.com/spf13/cobra/releases/tag/v1.10.2)

[Compare Source](spf13/cobra@v1.10.1...v1.10.2)

#### 🔧 Dependencies

- chore: Migrate from `gopkg.in/yaml.v3` to `go.yaml.in/yaml/v3` by [@&#8203;dims](https://github.com/dims) in [#&#8203;2336](spf13/cobra#2336) - the `gopkg.in/yaml.v3` package has been deprecated for some time: this should significantly cleanup dependency/supply-chains for consumers of `spf13/cobra`

#### 📈 CI/CD

- Fix linter and allow CI to pass by [@&#8203;marckhouzam](https://github.com/marckhouzam) in [#&#8203;2327](spf13/cobra#2327)
- fix: actions/setup-go v6 by [@&#8203;jpmcb](https://github.com/jpmcb) in [#&#8203;2337](spf13/cobra#2337)

#### 🔥✍🏼 Docs

- Add documentation for repeated flags functionality by [@&#8203;rvergis](https://github.com/rvergis) in [#&#8203;2316](spf13/cobra#2316)

#### 🍂 Refactors

- refactor: replace several vars with consts by [@&#8203;htoyoda18](https://github.com/htoyoda18) in [#&#8203;2328](spf13/cobra#2328)
- refactor: change minUsagePadding from var to const by [@&#8203;ssam18](https://github.com/ssam18) in [#&#8203;2325](spf13/cobra#2325)

#### 🤗 New Contributors

- [@&#8203;rvergis](https://github.com/rvergis) made their first contribution in [#&#8203;2316](spf13/cobra#2316)
- [@&#8203;htoyoda18](https://github.com/htoyoda18) made their first contribution in [#&#8203;2328](spf13/cobra#2328)
- [@&#8203;ssam18](https://github.com/ssam18) made their first contribution in [#&#8203;2325](spf13/cobra#2325)
- [@&#8203;dims](https://github.com/dims) made their first contribution in [#&#8203;2336](spf13/cobra#2336)

**Full Changelog**: <spf13/cobra@v1.10.1...v1.10.2>

Thank you to our amazing contributors!!!!! 🐍 🚀

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **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 [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43OC4xIiwidXBkYXRlZEluVmVyIjoiNDIuNzguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiS2luZC9EZXBlbmRlbmN5VXBkYXRlIiwicnVuLWVuZC10by1lbmQtdGVzdHMiXX0=-->

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1279
Reviewed-by: Michael Kriese <[email protected]>
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
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.

2 participants