[PR #14808] integration: replace deprecated io/ioutil with os.ReadFile #61546

Open
opened 2026-04-29 16:37:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14808
Author: @kaashmonee
Created: 3/12/2026
Status: 🔄 Open

Base: mainHead: integration-remove-deprecated-ioutil


📝 Commits (2)

  • f4cdec4 integration: replace deprecated io/ioutil with os.ReadFile
  • 943dcf6 Merge pull request #1 from candacelabs/integration-remove-deprecated-ioutil

📊 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

Replace deprecated io/ioutil.ReadFile with os.ReadFile in integration tests (model_arch_test.go and model_perf_test.go).

io/ioutil has been deprecated since Go 1.16. Both files already import os, so this is a straightforward swap with no behavior change.


🔄 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/14808 **Author:** [@kaashmonee](https://github.com/kaashmonee) **Created:** 3/12/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `integration-remove-deprecated-ioutil` --- ### 📝 Commits (2) - [`f4cdec4`](https://github.com/ollama/ollama/commit/f4cdec4fcd92a0508664c416dfddbe41e11eb792) integration: replace deprecated io/ioutil with os.ReadFile - [`943dcf6`](https://github.com/ollama/ollama/commit/943dcf651f09027319b9b6ffe93c5e7cb2b5cf2c) Merge pull request #1 from candacelabs/integration-remove-deprecated-ioutil ### 📊 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 Replace deprecated `io/ioutil.ReadFile` with `os.ReadFile` in integration tests (`model_arch_test.go` and `model_perf_test.go`). `io/ioutil` has been deprecated since Go 1.16. Both files already import `os`, so this is a straightforward swap with no behavior change. --- <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-29 16:37:26 -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#61546