Logo
Explore Help
Register Sign In
antior/magpie
Watch 1
Star 0
Fork 0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
4794de398ea8337d223a91e207181c56fcf4ad76
magpie/internal/provider/install_other.go
T
yetone 6e7546337b grok: Grok Build is found on Windows where its installer puts it (#180: the Grok Build installer finished, but magpie can't find it) — magpie looked for ~/.grok/bin/grok, without .exe, and then only at the first grok on PATH, which on Windows may be another (an npm grok.cmd). Now it looks at GROK_BIN_DIR, the grok home's bin and ~/.grok/bin (grok.exe on Windows), then every folder on PATH and on the registry's PATH, which has what was installed since magpie started, taking a grok there only under a .grok folder; the install-first error gives the PowerShell command on Windows. Tested the order and names of the places looked at, and which grok is taken, in a fake home
2026-09-29 11:04:46 +08:00

12 lines
297 B
Go
Raw Blame History

//go:build !windows
package provider
// refreshPath has nothing to do: magpie looks for the CLIs where their
// installers put them.
func refreshPath() {}
// registryPath is Windows' alone: elsewhere proc.UserPath gives the app a
// terminal's PATH.
func registryPath() []string { return nil }
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.27.3 Page: 14ms Template: 2ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API