use replace for web instead of static import
tronnet/workflows: Static Analysis -- Golang / lint-check (push) Failing after 4s
tronnet/workflows: Static Analysis -- Golang / static-go (push) Failing after 3s

This commit is contained in:
alu
2026-07-30 18:58:53 +00:00
parent 613f01456f
commit 9306058e90
4 changed files with 11 additions and 4 deletions
+5 -3
View File
@@ -5,9 +5,6 @@ build: clean ensure-dist build-web build-wfa-js
# resolve symbolic links in web by copying it into dist/web/
CGO_ENABLED=0 go build -tags release -ldflags="-s -w" -v -o dist/ .
ensure-dist:
mkdir -p dist
build-web: ensure-dist
cp -rL web/ dist/web/
@@ -22,3 +19,8 @@ clean: clean-wfa-js
clean-wfa-js:
$(MAKE) clean -C WFA-JS
ensure-dist:
mkdir -p dist
workflow-init: ensure-dist build-web build-wfa-js
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"log"
"proxmoxaas-dashboard/app/common"
"proxmoxaas-dashboard/app/routes"
"proxmoxaas-dashboard/dist/web" // go will complain here until the first build
"web" // go will complain here until the first build
"github.com/gin-gonic/gin"
"github.com/tdewolff/minify/v2"
+2
View File
@@ -8,9 +8,11 @@ require (
github.com/go-viper/mapstructure/v2 v2.5.0
github.com/tdewolff/minify/v2 v2.24.13
proxmoxaas-common-lib v0.0.0
web v0.0.0
)
replace proxmoxaas-common-lib => ./proxmoxaas-common-lib
replace web => ./dist/web
require (
github.com/bytedance/gopkg v0.1.4 // indirect
+3
View File
@@ -0,0 +1,3 @@
module web
go 1.26.0