Skip to content

Commit

Permalink
FEATURE: make synco more resilient (now for real)
Browse files Browse the repository at this point in the history
  • Loading branch information
skurfuerst committed May 16, 2024
1 parent a3c6205 commit 39b1ac4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/sandstorm/synco
go 1.19

require (
atomicgo.dev/keyboard v0.2.8
filippo.io/age v1.0.0
github.com/DATA-DOG/go-sqlmock v1.5.0
github.com/charmbracelet/bubbles v0.16.1
Expand All @@ -24,10 +23,12 @@ require (
k8s.io/api v0.25.3
k8s.io/apimachinery v0.25.3
k8s.io/client-go v0.25.3
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed
)

require (
atomicgo.dev/cursor v0.1.1 // indirect
atomicgo.dev/keyboard v0.2.8 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
Expand Down Expand Up @@ -98,7 +99,6 @@ require (
gopkg.in/yaml.v2 v2.4.0 // indirect
k8s.io/klog/v2 v2.70.1 // indirect
k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1 // indirect
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed // indirect
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
Expand Down
5 changes: 3 additions & 2 deletions pkg/frameworks/flowServe/flowServe.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,12 @@ func (f flowServe) extractAllResourcesFromFolder(transferSession *serve.Transfer

realPath, err := filepath.EvalSymlinks(filePath)
if err != nil {
return err
pterm.Error.Printfln("Could NOT evaluate symlinks (skipping): %s: %s", filePath, err)
return nil
}
realFileInfo, err := os.Lstat(realPath)
if err != nil {
pterm.Error.Printfln("Could NOT read file (skipping): %s: %s", realPath, err)
pterm.Error.Printfln("Could NOT read file info (skipping): %s: %s", realPath, err)
return nil
}

Expand Down

0 comments on commit 39b1ac4

Please sign in to comment.