MCPcopy
hub / github.com/syncthing/syncthing / lazyRebuildAssets

Function lazyRebuildAssets

build.go:805–812  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

803}
804
805func lazyRebuildAssets() {
806 shouldRebuild := shouldRebuildAssets("lib/api/auto/gui.files.go", "gui") ||
807 shouldRebuildAssets("cmd/infra/strelaypoolsrv/auto/gui.files.go", "cmd/infra/strelaypoolsrv/gui")
808
809 if shouldRebuild {
810 rebuildAssets()
811 }
812}
813
814func shouldRebuildAssets(target, srcdir string) bool {
815 info, err := os.Stat(target)

Callers 7

testFunction · 0.85
benchFunction · 0.85
integrationFunction · 0.85
installFunction · 0.85
buildFunction · 0.85
metalintFunction · 0.85
metalintShortFunction · 0.85

Calls 2

shouldRebuildAssetsFunction · 0.85
rebuildAssetsFunction · 0.85

Tested by

no test coverage detected