1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-30 08:06:52 +02:00

fix vendor

This commit is contained in:
Brad Rydzewski 2017-05-06 03:23:09 +02:00
parent 949ea3553f
commit a540f8fa00
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,28 @@
package types
import "strconv"
// BoolTrue is a custom Yaml boolean type that defaults to true.
type BoolTrue struct {
value bool
}
// UnmarshalYAML implements custom Yaml unmarshaling.
func (b *BoolTrue) UnmarshalYAML(unmarshal func(interface{}) error) error {
var s string
err := unmarshal(&s)
if err != nil {
return err
}
value, err := strconv.ParseBool(s)
if err == nil {
b.value = !value
}
return nil
}
// Bool returns the bool value.
func (b BoolTrue) Bool() bool {
return !b.value
}

6
vendor/vendor.json vendored
View File

@ -83,6 +83,12 @@
"revision": "5cc866493ddb8e321050e061a926a9af0080d4de",
"revisionTime": "2017-05-06T00:17:19Z"
},
{
"checksumSHA1": "L7Q5qJmPITNmvFEEaj5MPwCWFRk=",
"path": "github.com/cncd/pipeline/pipeline/frontend/yaml/types",
"revision": "5cc866493ddb8e321050e061a926a9af0080d4de",
"revisionTime": "2017-05-06T00:17:19Z"
},
{
"checksumSHA1": "2/3f3oNmxXy5kcrRLCFa24Oc9O4=",
"path": "github.com/cncd/pipeline/pipeline/interrupt",