-
Notifications
You must be signed in to change notification settings - Fork 70
go 1.25 + upgrade containers #1192
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
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e21d76a
go 1.25 + upgrade containers
burmudar 5365859
update workflows
burmudar be7c871
use golangci-lint 2.6.1
burmudar 2841716
migrate golangci-lint to v2
burmudar 3c5eb53
fix golang container tag
burmudar 82e52c1
set minimum go version in go.mod
burmudar c5c4eef
Merge branch 'main' into wb/go-1-25
burmudar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,59 +1,67 @@ | ||
| # See explanation of linters at https://golangci-lint.run/usage/linters/ | ||
| version: "2" | ||
| linters: | ||
| disable-all: true | ||
| default: none | ||
| enable: | ||
| - bodyclose | ||
| - depguard | ||
| - gocritic | ||
| - goimports | ||
| - gosimple | ||
| - govet | ||
| - ineffassign | ||
| - nolintlint | ||
| - staticcheck | ||
| - typecheck | ||
| - unconvert | ||
| - unused | ||
|
|
||
| linters-settings: | ||
| depguard: | ||
| settings: | ||
| depguard: | ||
| rules: | ||
| main: | ||
| deny: | ||
| - pkg: errors | ||
| desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead | ||
| - pkg: github.com/pkg/errors | ||
| desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead | ||
| - pkg: github.com/cockroachdb/errors | ||
| desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead | ||
| - pkg: github.com/hashicorp/go-multierror | ||
| desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead | ||
| - pkg: io/ioutil | ||
| desc: The ioutil package has been deprecated | ||
| forbidigo: | ||
| forbid: | ||
| - pattern: fmt\.Errorf | ||
| gocritic: | ||
| disabled-checks: | ||
| - appendAssign | ||
| - assignOp | ||
| - commentFormatting | ||
| - deprecatedComment | ||
| - exitAfterDefer | ||
| - ifElseChain | ||
| - singleCaseSwitch | ||
| govet: | ||
| disable: | ||
| - composites | ||
| exclusions: | ||
| generated: lax | ||
| presets: | ||
| - comments | ||
| - common-false-positives | ||
| - legacy | ||
| - std-error-handling | ||
| rules: | ||
| main: | ||
| deny: | ||
| - pkg: "errors" | ||
| desc: "Use github.com/sourcegraph/sourcegraph/lib/errors instead" | ||
| - pkg: "github.com/pkg/errors" | ||
| desc: "Use github.com/sourcegraph/sourcegraph/lib/errors instead" | ||
| - pkg: "github.com/cockroachdb/errors" | ||
| desc: "Use github.com/sourcegraph/sourcegraph/lib/errors instead" | ||
| - pkg: "github.com/hashicorp/go-multierror" | ||
| desc: "Use github.com/sourcegraph/sourcegraph/lib/errors instead" | ||
| - pkg: "io/ioutil" | ||
| desc: "The ioutil package has been deprecated" | ||
| gocritic: | ||
| disabled-checks: | ||
| - appendAssign # Too many false positives | ||
| - assignOp # Maybe worth adding, but likely not worth the noise | ||
| - commentFormatting # No strong benefit | ||
| - deprecatedComment # Unnecessary | ||
| - exitAfterDefer # Only occurs in auxiliary tools | ||
| - ifElseChain # Noisy for not much gain | ||
| - singleCaseSwitch # Noisy for not much gain | ||
| govet: | ||
| disable: | ||
| - composites | ||
| forbidigo: | ||
| forbid: | ||
| # Use errors.New instead | ||
| - 'fmt\.Errorf' | ||
|
|
||
| issues: | ||
| exclude-rules: | ||
| # Exclude bodyclose lint from tests because leaking connections in tests | ||
| # is a non-issue, and checking that adds unnecessary noise | ||
| - path: _test\.go | ||
| linters: | ||
| - bodyclose | ||
|
|
||
| run: | ||
| timeout: 5m | ||
| - linters: | ||
| - bodyclose | ||
| path: _test\.go | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ | ||
| formatters: | ||
| enable: | ||
| - goimports | ||
| exclusions: | ||
| generated: lax | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| golang 1.24.1 | ||
| golang 1.25.4 | ||
| shfmt 3.8.0 | ||
| shellcheck 0.10.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,6 @@ | ||
| module github.com/sourcegraph/src-cli | ||
|
|
||
| go 1.24 | ||
|
|
||
| toolchain go1.24.1 | ||
| go 1.23.12 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aah we probably wanted to bump the toolchain. But you know what I am being a bit silly. We should be the only people consuming this so lets just use the latest go version? |
||
|
|
||
| require ( | ||
| cloud.google.com/go/storage v1.30.1 | ||
|
|
@@ -19,7 +17,6 @@ require ( | |
| github.com/dustin/go-humanize v1.0.1 | ||
| github.com/gobwas/glob v0.2.3 | ||
| github.com/google/go-cmp v0.6.0 | ||
| github.com/gorilla/websocket v1.5.3 | ||
| github.com/grafana/regexp v0.0.0-20221123153739-15dc172cd2db | ||
| github.com/hexops/autogold v1.3.1 | ||
| github.com/jedib0t/go-pretty/v6 v6.3.7 | ||
|
|
@@ -51,6 +48,7 @@ require ( | |
| github.com/fxamacker/cbor/v2 v2.7.0 // indirect | ||
| github.com/google/gnostic-models v0.6.8 // indirect | ||
| github.com/google/s2a-go v0.1.4 // indirect | ||
| github.com/gorilla/websocket v1.5.3 // indirect | ||
| github.com/jackc/chunkreader/v2 v2.0.1 // indirect | ||
| github.com/jackc/pgconn v1.14.3 // indirect | ||
| github.com/jackc/pgio v1.0.0 // indirect | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was done by running
golangci-lint migrate