mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
Replace the pattern of `git checkout <tag> && make <binary>` with `git worktree add /tmp/vm-* <tag>` so that flag updates no longer switch the working tree of the current repository. Each variant (opensource, enterprise, cluster) gets its own worktree, removing the need to restore the original branch between steps. Also normalize dynamic default values in vmctl prometheus flags (-prom-tmp-dir-path) to `os.TempDir()` to reduce noisy diffs caused by machine-specific temp paths.