summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-05-17 01:56:44 +0200
committerewy <ewy0@protonmail.com>2026-05-17 01:58:20 +0200
commitbcc71c92fd6f24cad75b713b6de0da8989c48b70 (patch)
treef541634b57295d4bf216bce7359142708d42ac8b /runner
parentf5807d9f3a6c96e70912b61fac17120f412b5782 (diff)
fix existing tests and import loop
Diffstat (limited to 'runner')
-rw-r--r--runner/base.go4
-rw-r--r--runner/shell/shell.go6
2 files changed, 5 insertions, 5 deletions
diff --git a/runner/base.go b/runner/base.go
index b3013b3..4fcd3d0 100644
--- a/runner/base.go
+++ b/runner/base.go
@@ -2,8 +2,8 @@ package runner
import (
"github.com/ewy1/pik/identity"
- "github.com/ewy1/pik/indexers/pikdex"
"github.com/ewy1/pik/model"
+ "github.com/ewy1/pik/paths"
"path/filepath"
"slices"
"strings"
@@ -21,7 +21,7 @@ func SubFromFile(file string) []string {
var sub []string
split := strings.Split(file, "/")
for _, p := range split {
- if slices.Contains(pikdex.Roots, p) {
+ if slices.Contains(paths.Roots, p) {
continue
}
if filename == p {
diff --git a/runner/shell/shell.go b/runner/shell/shell.go
index 53b4df3..8bef032 100644
--- a/runner/shell/shell.go
+++ b/runner/shell/shell.go
@@ -4,8 +4,8 @@ import (
"bufio"
"errors"
"github.com/ewy1/pik/identity"
- "github.com/ewy1/pik/indexers/pikdex"
"github.com/ewy1/pik/model"
+ "github.com/ewy1/pik/paths"
"github.com/ewy1/pik/runner"
"github.com/ewy1/pik/spool"
"io/fs"
@@ -87,7 +87,7 @@ func (s *shell) CreateTarget(fs fs.FS, src string, file string, _ fs.DirEntry) (
var sub []string
split := strings.Split(file, "/")
for _, p := range split {
- if slices.Contains(pikdex.Roots, p) {
+ if slices.Contains(paths.Roots, p) {
continue
}
if filename == p {
@@ -133,7 +133,7 @@ func (s *shell) ShellFor(fs fs.FS, file string) (string, error) {
if loc, err := s.Find(potentialShell); err == nil {
shell = loc
} else {
- _, _ = spool.Warn("script has %s but could not find %s (%s)\n", shebang, potentialShell)
+ _, _ = spool.Warn("script has %s but could not find %s\n", shebang, potentialShell)
}
}
}