diff --git a/contrib/releases/build.sh b/contrib/releases/build.sh index 7170d6b219e91430806f8cbc76967024215a75b9..d7b57ace5ec3882f8626df6cd0d23b1f4dbc2556 100755 --- a/contrib/releases/build.sh +++ b/contrib/releases/build.sh @@ -82,6 +82,6 @@ echo "$checksum /usr/local/share/icudt58l.dat" >> $checksum_file echo -e "Calculating and storing checksum for tar gzipped assets." cd $cur_dir -tar -zcf assets.tar.gz -C $GOPATH/src/github.com/dgraph-io/dgraph/dashboard/build . +GZIP=-n tar -zcf assets.tar.gz -C $GOPATH/src/github.com/dgraph-io/dgraph/dashboard/build . checksum=$($digest_cmd assets.tar.gz | awk '{print $1}') echo "$checksum /usr/local/share/dgraph/assets.tar.gz" >> $checksum_file diff --git a/store/store.go b/store/store.go index f1f671fb5d351c257067d4e21889c83866b0111f..1250388320d6ccaa6a45a2c536f3b3974cc9e184 100644 --- a/store/store.go +++ b/store/store.go @@ -69,7 +69,7 @@ func NewSyncStore(filepath string) (*Store, error) { s.wopt.SetSync(true) // Do synchronous writes. var err error s.db, err = rdb.OpenDb(s.opt, filepath) - return s, x.Wrap(err) + return s, x.Wrapf(err, "Directory: %v", filepath) } // NewReadOnlyStore constructs a readonly Store object at filepath, given options.