Skip to content

Commit

Permalink
Merge release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Jan 10, 2019
2 parents ffb5379 + 6727548 commit e7b668f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ release: spiff_linux_amd64.zip spiff_darwin_amd64.zip

spiff_linux_amd64.zip:
GOPATH=$(GOPATH) GOOS=linux GOARCH=amd64 go build -o spiff++/spiff++ .
zip spiff++/spiff_linux_amd64.zip spiff++/spiff++
(cd spiff++; zip spiff_linux_amd64.zip spiff++)
rm spiff++/spiff++

spiff_darwin_amd64.zip:
GOPATH=$(GOPATH) GOOS=darwin GOARCH=amd64 go build -o spiff++/spiff++ .
zip spiff++/spiff_darwin_amd64.zip spiff++/spiff++
(cd spiff++; zip spiff_darwin_amd64.zip spiff++)
rm spiff++/spiff++
2 changes: 1 addition & 1 deletion dynaml/dynamic_expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (e DynamicExpr) Evaluate(binding Binding, locally bool) (interface{}, Evalu
return info.Error("index or field name required for reference qualifier")
}
return ReferenceExpr{qual}.find(func(end int, path []string) (yaml.Node, bool) {
return yaml.Find(node(root, nil), path...)
return yaml.Find(node(root, nil), path[:end+1]...)
}, binding, locally)
}

Expand Down
1 change: 1 addition & 0 deletions dynaml/reference.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func (e ReferenceExpr) find(f func(int, []string) (node yaml.Node, x bool), bind
var ok bool

info := DefaultInfo()
debug.Debug("resolving ref [%v]", e.Path)
for i := 0; i < len(e.Path); i++ {
step, ok = f(i, e.Path)

Expand Down
4 changes: 2 additions & 2 deletions dynaml/x509/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ func func_x509cert(arguments []interface{}, binding Binding) (interface{}, Evalu
NotBefore: notBefore,
NotAfter: notAfter,

KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
KeyUsage: 0,
ExtKeyUsage: []x509.ExtKeyUsage{},
BasicConstraintsValid: true,
}

Expand Down
6 changes: 3 additions & 3 deletions spiff++.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (

func main() {
app := cli.NewApp()
app.Name = "spiff"
app.Usage = "BOSH deployment manifest toolkit"
app.Version = "1.2.0"
app.Name = "spiff++"
app.Usage = "deployment manifest toolkit"
app.Version = "1.2.1"

app.Commands = []cli.Command{
{
Expand Down

0 comments on commit e7b668f

Please sign in to comment.