mirror of
https://github.com/prometheus/prometheus
synced 2024-12-24 07:23:02 +00:00
Merge pull request #8431 from phith0n/missing-ui-on-windows
fix: UI error while compiling on Windows
This commit is contained in:
commit
41247b6950
@ -19,6 +19,7 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/shurcooL/httpfs/filter"
|
||||
@ -32,7 +33,7 @@ var Assets = func() http.FileSystem {
|
||||
panic(err)
|
||||
}
|
||||
var assetsPrefix string
|
||||
switch path.Base(wd) {
|
||||
switch filepath.Base(wd) {
|
||||
case "prometheus":
|
||||
// When running Prometheus (without built-in assets) from the repo root.
|
||||
assetsPrefix = "./web/ui"
|
||||
|
Loading…
Reference in New Issue
Block a user