[PR #5336] [MERGED] fix: trim spaces for FROM argument, don't trim inside of quotes #58446

Closed
opened 2026-04-29 13:20:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5336
Author: @joshyan1
Created: 6/27/2024
Status: Merged
Merged: 7/1/2024
Merged by: @joshyan1

Base: mainHead: jyan/from-errors


📝 Commits (4)

📊 Changes

2 files changed (+69 additions, -5 deletions)

View changed files

📝 parser/parser.go (+2 -2)
📝 parser/parser_test.go (+67 -3)

📄 Description

Run trimspaces on arguements before unquoting.

Closes: https://github.com/ollama/ollama/issues/4998


🔄 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/5336 **Author:** [@joshyan1](https://github.com/joshyan1) **Created:** 6/27/2024 **Status:** ✅ Merged **Merged:** 7/1/2024 **Merged by:** [@joshyan1](https://github.com/joshyan1) **Base:** `main` ← **Head:** `jyan/from-errors` --- ### 📝 Commits (4) - [`4e986a8`](https://github.com/ollama/ollama/commit/4e986a823ca47eb16f563d15a6fe4cc393a00715) unquote, trimp space - [`9bd0004`](https://github.com/ollama/ollama/commit/9bd00041fa1c82881299f34a5950f9edc2a7e66c) trim all params - [`26e4e66`](https://github.com/ollama/ollama/commit/26e4e66faff20a94bb8fee9ec2bc3e17a07fb19e) updated parsefile test - [`7e571f9`](https://github.com/ollama/ollama/commit/7e571f95f0306f90e4f754e34df96ebc36f93626) trimspace test case ### 📊 Changes **2 files changed** (+69 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `parser/parser.go` (+2 -2) 📝 `parser/parser_test.go` (+67 -3) </details> ### 📄 Description Run trimspaces on arguements before unquoting. Closes: https://github.com/ollama/ollama/issues/4998 --- <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 13:20:02 -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#58446