[PR #14707] integration: replace deprecated ioutil.ReadFile with os.ReadFile #20070

Open
opened 2026-04-16 07:25:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14707
Author: @alvinttang
Created: 3/8/2026
Status: 🔄 Open

Base: mainHead: fix/replace-deprecated-ioutil


📝 Commits (1)

  • 343bbf8 integration: replace deprecated ioutil.ReadFile with os.ReadFile

📊 Changes

2 files changed (+2 additions, -4 deletions)

View changed files

📝 integration/model_arch_test.go (+1 -2)
📝 integration/model_perf_test.go (+1 -2)

📄 Description

Summary

Replace deprecated io/ioutil package usage with the recommended os.ReadFile in integration test files. The io/ioutil package has been deprecated since Go 1.16 (released Feb 2021) and ioutil.ReadFile is a direct alias for os.ReadFile.

Files changed

  • integration/model_perf_test.go: ioutil.ReadFile -> os.ReadFile
  • integration/model_arch_test.go: ioutil.ReadFile -> os.ReadFile

Test plan

  • go vet -tags integration,perf ./integration/ passes (no new issues)
  • go vet -tags integration,models ./integration/ passes (no new issues)

🔄 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/14707 **Author:** [@alvinttang](https://github.com/alvinttang) **Created:** 3/8/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/replace-deprecated-ioutil` --- ### 📝 Commits (1) - [`343bbf8`](https://github.com/ollama/ollama/commit/343bbf80d77c87a5035286d9d690b59396167c1c) integration: replace deprecated ioutil.ReadFile with os.ReadFile ### 📊 Changes **2 files changed** (+2 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `integration/model_arch_test.go` (+1 -2) 📝 `integration/model_perf_test.go` (+1 -2) </details> ### 📄 Description ## Summary Replace deprecated `io/ioutil` package usage with the recommended `os.ReadFile` in integration test files. The `io/ioutil` package has been deprecated since Go 1.16 (released Feb 2021) and `ioutil.ReadFile` is a direct alias for `os.ReadFile`. ### Files changed - `integration/model_perf_test.go`: `ioutil.ReadFile` -> `os.ReadFile` - `integration/model_arch_test.go`: `ioutil.ReadFile` -> `os.ReadFile` ## Test plan - [x] `go vet -tags integration,perf ./integration/` passes (no new issues) - [x] `go vet -tags integration,models ./integration/` passes (no new issues) --- <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-16 07:25:30 -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#20070