8000 sort properly Go imports by dmitris · Pull Request #4071 · sigstore/cosign · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sort properly Go imports #4071

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 1 commit into from
Feb 19, 2025
Merged

Conversation

dmitris
Copy link
Contributor
@dmitris dmitris commented Feb 18, 2025

Summary

As in the previously merged #4061 and #4062, sort the Go imports to be in the alphabetical order (mostly the "third-party" = non-stdlib imports though pkg/cosign/errors_test.go had the stdlib imports in a wrong order).
As mentioned in #4062,

I propose to keep all the third-party (non-stdlib) imports in just one block to make it easier for the IDEs to properly sort those imports on addition or deletion.

I didn't change the existing extra blank lines where they don't violate the alphabetical sorted order of the imports.

Release Note

NONE

Documentation

n/a

@dmitris dmitris requested a review from a team as a code owner February 18, 2025 13:38
Copy link
codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.76%. Comparing base (2ef6022) to head (63ec684).
Report is 315 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4071      +/-   ##
==========================================
- Coverage   40.10%   36.76%   -3.35%     
==========================================
  Files         155      210      +55     
  Lines       10044    13386    +3342     
==========================================
+ Hits         4028     4921     +893     
- Misses       5530     7847    +2317     
- Partials      486      618     +132     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
@haydentherapper haydentherapper merged commit a0b20b7 into sigstore:main Feb 19, 2025
29 checks passed
@dmitris dmitris del 8000 eted the go-imports-sort branch February 20, 2025 08:14
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Feb 26, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [cosign](https://github.com/sigstore/cosign) | patch | `2.4.2` -> `2.4.3` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>sigstore/cosign (cosign)</summary>

### [`v2.4.3`](https://github.com/sigstore/cosign/blob/HEAD/CHANGELOG.md#v243)

[Compare Source](sigstore/cosign@v2.4.2...v2.4.3)

#### Features

-   Bump sigstore/sigstore to support KMS plugins ([#&#8203;4073](sigstore/cosign#4073))
-   Enable fetching signatures without remote get. ([#&#8203;4047](sigstore/cosign#4047))
-   Feat/file flag completion improvements ([#&#8203;4028](sigstore/cosign#4028))
-   Update builder to use go1.23.6 ([#&#8203;4052](sigstore/cosign#4052))

#### Bug Fixes

-   fix parsing error in --only for cosign copy ([#&#8203;4049](sigstore/cosign#4049))

#### Cleanup

-   Refactor verifyNewBundle into library function ([#&#8203;4013](sigstore/cosign#4013))
-   fix comment typo and imports order ([#&#8203;4061](sigstore/cosign#4061))
-   sync comment with parameter name in function signature ([#&#8203;4063](sigstore/cosign#4063))
-   sort properly Go imports ([#&#8203;4071](sigstore/cosign#4071))

#### Contributors

-   Bob Callaway
-   Carlos Tadeu Panato Junior
-   Cody Soyland
-   Dmitry Savintsev
-   Hayden B
-   Tomasz Janiszewski
-   Ville Skyttä

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

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

---

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

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODAuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE4MC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
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
0