Skip to content

Commit d8de0c2

Browse files
committed
v0.9.8 - server still works if a schema symlink is broken
1 parent 774af92 commit d8de0c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHELL = /bin/sh
22

3-
VERSION=0.9.7
3+
VERSION=0.9.8
44
BUILD=`git rev-parse HEAD`
55

66
LDFLAGS=-ldflags "-w -s \

schema/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func ReadMerged() (*serializers.Schema, error) {
109109
if fi.Mode()&os.ModeSymlink != 0 {
110110
path, err = os.Readlink(path)
111111
if err != nil {
112-
return nil, err
112+
continue // It's OK if this symlink isn't traversable (e.g. app was uninstalled), we'll just skip it.
113113
}
114114
}
115115
// Read file

0 commit comments

Comments
 (0)