Skip to content

Commit cee4caa

Browse files
committed
Upgrade gopls to v0.19.0
1 parent 416ff1f commit cee4caa

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
3636
GO_LICENSES_PACKAGE ?= github.com/google/go-licenses@v1
3737
GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/govulncheck@v1
3838
ACTIONLINT_PACKAGE ?= github.com/rhysd/actionlint/cmd/actionlint@v1
39-
GOPLS_PACKAGE ?= golang.org/x/tools/gopls@v0.17.1
39+
GOPLS_PACKAGE ?= golang.org/x/tools/gopls@v0.19.0
4040

4141
DOCKER_IMAGE ?= gitea/gitea
4242
DOCKER_TAG ?= latest

models/migrations/v1_22/v294_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func Test_AddUniqueIndexForProjectIssue(t *testing.T) {
4444
for _, index := range tables[0].Indexes {
4545
if index.Type == schemas.UniqueType {
4646
found = true
47-
slices.Equal(index.Cols, []string{"project_id", "issue_id"})
47+
assert.True(t, slices.Equal(index.Cols, []string{"project_id", "issue_id"}))
4848
break
4949
}
5050
}

modules/public/public.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,4 @@ func servePublicAsset(w http.ResponseWriter, req *http.Request, fi os.FileInfo,
110110
}
111111
}
112112
http.ServeContent(w, req, fi.Name(), modtime, content)
113-
return
114113
}

routers/private/hook_verification_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ func TestVerifyCommits(t *testing.T) {
1818
unittest.PrepareTestEnv(t)
1919

2020
gitRepo, err := git.OpenRepository(t.Context(), testReposDir+"repo1_hook_verification")
21-
defer gitRepo.Close()
21+
if err != nil {
22+
defer gitRepo.Close()
23+
}
2224
assert.NoError(t, err)
2325

2426
objectFormat, err := gitRepo.GetObjectFormat()

0 commit comments

Comments
 (0)