fix: linux dev workflow

This commit is contained in:
Florian Sylvain committed 2026-10-11 06:31:49 +02:00
1 parent ce9c876db6
commit 67b3ff03d0
3 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -2,8 +2,8 @@ root = "."
tmp_dir = "tmp" tmp_dir = "tmp"
[build] [build]
cmd = "go build -tags nofrontend -o ./tmp/renewcms.exe ./cmd/server" cmd = "go build -tags nofrontend -o ./tmp/renewcms ./cmd/server"
bin = "tmp/renewcms.exe" bin = "tmp/renewcms"
delay = 500 delay = 500
exclude_dir = ["tmp", "bin", "data", "web", "features", "docs", "internal/infrastructure/assets/dist", ".claude"] exclude_dir = ["tmp", "bin", "data", "web", "features", "docs", "internal/infrastructure/assets/dist", ".claude"]
exclude_regex = ["_test.go"] exclude_regex = ["_test.go"]
+1 -1
View File
@@ -2,7 +2,7 @@
set -euo pipefail set -euo pipefail
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
work="$root/tmp/mutate-work" work="${MUTATE_WORKDIR:-${XDG_CACHE_HOME:-$HOME/.cache}/renewcms-mutate}"
rm -rf "$work" rm -rf "$work"
mkdir -p "$work" mkdir -p "$work"
trap 'rm -rf "$work"' EXIT trap 'rm -rf "$work"' EXIT
+2 -1
View File
@@ -22,6 +22,7 @@ import (
"runtime" "runtime"
"strings" "strings"
"sync" "sync"
"syscall"
"testing" "testing"
"time" "time"
) )
@@ -470,7 +471,7 @@ func (r *downloadRig) waitForJob(states ...string) update.Job {
func assertStagedDirGone(t *testing.T, rig *downloadRig) { func assertStagedDirGone(t *testing.T, rig *downloadRig) {
t.Helper() t.Helper()
if _, err := os.Stat(rig.stagedDir()); !os.IsNotExist(err) { if _, err := os.Stat(rig.stagedDir()); !os.IsNotExist(err) && !errors.Is(err, syscall.ENOTDIR) {
t.Errorf("staged directory still exists: %v", err) t.Errorf("staged directory still exists: %v", err)
} }
} }