[PR #5632] [CLOSED] cmd: better version info when client/server not equal #17133

Closed
opened 2026-04-16 05:53:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5632
Author: @alwqx
Created: 7/11/2024
Status: Closed

Base: mainHead: feat/better-version-info


📝 Commits (1)

  • 001a52c cmd: better version info when client/server not equal

📊 Changes

1 file changed (+3 additions, -4 deletions)

View changed files

📝 cmd/cmd.go (+3 -4)

📄 Description

This pr updates version info when client version != server version

example

  1. client version == server version. local build with command GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=v0.2.1-rc3\"'" go build .
    $ ./ollama --version
    ollama version is v0.2.1-rc3
    
  2. client version != server version. client is local built with specific version v0.2.1-rc3. This sometimes happens when upgrade ollama but not restart server or a client connects to remote ollama server.
    $ ./ollama --version
    ollama server version is 0.1.45
    Warning: client version is v0.2.1-rc3
    
  3. client version != server version. server built with default version.
    $ ./ollama --version
    ollama server version is 0.0.0
    Warning: client version is v0.2.1-rc3
    

@jmorganca @dhiltgen please help review or give feadback.


🔄 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/5632 **Author:** [@alwqx](https://github.com/alwqx) **Created:** 7/11/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/better-version-info` --- ### 📝 Commits (1) - [`001a52c`](https://github.com/ollama/ollama/commit/001a52cb0aa51fb3ef4b2de878d974851f0a658b) cmd: better version info when client/server not equal ### 📊 Changes **1 file changed** (+3 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+3 -4) </details> ### 📄 Description This pr updates version info when client version != server version ## example 1. **client version == server version**. local build with command `GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=v0.2.1-rc3\"'" go build .` ```shell $ ./ollama --version ollama version is v0.2.1-rc3 ``` 2. **client version != server version**. client is local built with specific version `v0.2.1-rc3`. This sometimes happens when upgrade ollama but not restart server or a client connects to remote ollama server. ```shell $ ./ollama --version ollama server version is 0.1.45 Warning: client version is v0.2.1-rc3 ``` 3. **client version != server version**. server built with default version. ```shell $ ./ollama --version ollama server version is 0.0.0 Warning: client version is v0.2.1-rc3 ``` @jmorganca @dhiltgen please help review or give feadback. --- <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 05:53:34 -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#17133