[PR #13109] [MERGED] migrate to golangci-lint v2 #24614

Closed
opened 2026-04-19 17:41:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13109
Author: @mxyng
Created: 11/16/2025
Status: Merged
Merged: 11/18/2025
Merged by: @mxyng

Base: mainHead: mxyng/lint-v2


📝 Commits (2)

📊 Changes

7 files changed (+61 additions, -33 deletions)

View changed files

📝 .github/workflows/test.yaml (+3 -6)
📝 .golangci.yaml (+57 -21)
📝 fs/ggml/gguf.go (+1 -2)
📝 go.mod (+0 -1)
📝 ml/backend/ggml/ggml.go (+0 -1)
📝 server/quantization.go (+0 -1)
📝 template/template_test.go (+0 -1)

📄 Description

update golangci-lint to v2 and enable more linters but only check against merge base

for local use, install golangci-lint v2

go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13109 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 11/16/2025 **Status:** ✅ Merged **Merged:** 11/18/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/lint-v2` --- ### 📝 Commits (2) - [`cf3d151`](https://github.com/ollama/ollama/commit/cf3d15123f0c86ff0ed967508fd07233885b4729) migrate to golangci-lint v2 - [`0a9bdc2`](https://github.com/ollama/ollama/commit/0a9bdc2b4b285cd14755366260afd35d9068ee4e) copyloopvar ### 📊 Changes **7 files changed** (+61 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/test.yaml` (+3 -6) 📝 `.golangci.yaml` (+57 -21) 📝 `fs/ggml/gguf.go` (+1 -2) 📝 `go.mod` (+0 -1) 📝 `ml/backend/ggml/ggml.go` (+0 -1) 📝 `server/quantization.go` (+0 -1) 📝 `template/template_test.go` (+0 -1) </details> ### 📄 Description update golangci-lint to v2 and enable more linters but only check against merge base for local use, install golangci-lint v2 ``` go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 17:41:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#24614