[GH-ISSUE #2958] Use -trimpath for builds #1818

Closed
opened 2026-04-12 11:52:28 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @bmizerany on GitHub (Mar 6, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2958

When Ollama panics, the stacks contain path information specific to the build machine which can be removed using the -trimpath option. See https://pkg.go.dev/cmd/go

-trimpath
	remove all file system paths from the resulting executable.
	Instead of absolute file system paths, the recorded file names
	will begin either a module path@version (when using modules),
	or a plain import path (when using the standard library, or GOPATH).
Originally created by @bmizerany on GitHub (Mar 6, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2958 When Ollama panics, the stacks contain path information specific to the build machine which can be removed using the `-trimpath` option. See https://pkg.go.dev/cmd/go ``` -trimpath remove all file system paths from the resulting executable. Instead of absolute file system paths, the recorded file names will begin either a module path@version (when using modules), or a plain import path (when using the standard library, or GOPATH). ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1818