Skip to content

Commit a31f2da

Browse files
authored
Merge pull request #35 from Betterment/allow_broken_links
v0.9.8 - server still works if a schema symlink is broken
2 parents 774af92 + d8de0c2 commit a31f2da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: Makefile

+1-1
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 \

Diff for: schema/schema.go

+1-1
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)