[PR #5568] [CLOSED] Fix cannot range over constant error #43077

Closed
opened 2026-04-24 22:46:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5568
Author: @tiendreiliass0x
Created: 7/9/2024
Status: Closed

Base: mainHead: iliass/fix-InvalidRangeExpr


📝 Commits (2)

  • e83132d Fix cannot range over constant
  • 6c60968 Merge branch 'ollama:main' into iliass/fix-InvalidRangeExpr

📊 Changes

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

View changed files

📝 server/images.go (+1 -1)
📝 server/upload.go (+3 -3)

📄 Description

for try := range maxRetries { -> for try := 0; try < maxRetries; try++ {


🔄 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/5568 **Author:** [@tiendreiliass0x](https://github.com/tiendreiliass0x) **Created:** 7/9/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `iliass/fix-InvalidRangeExpr` --- ### 📝 Commits (2) - [`e83132d`](https://github.com/ollama/ollama/commit/e83132d8b3417b6b5a3c034f63b371357816ead5) Fix cannot range over constant - [`6c60968`](https://github.com/ollama/ollama/commit/6c609688064ed588d3b7d47f942fdb5cbbdf8e98) Merge branch 'ollama:main' into iliass/fix-InvalidRangeExpr ### 📊 Changes **2 files changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+1 -1) 📝 `server/upload.go` (+3 -3) </details> ### 📄 Description ``` for try := range maxRetries { ``` -> ```for try := 0; try < maxRetries; try++ {``` --- <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-24 22:46:24 -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#43077