diff --git a/go.mod b/go.mod index fd871514..cb61c411 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/jstemmer/go-junit-report/v2 v2.0.0 github.com/kyoh86/richgo v0.3.12 github.com/launchdarkly/api-client-go/v13 v13.0.0 - github.com/launchdarkly/ld-find-code-refs/v2 v2.11.0 + github.com/launchdarkly/ld-find-code-refs/v2 v2.11.4 ) require ( @@ -36,7 +36,7 @@ require ( github.com/bmatcuk/doublestar/v4 v4.6.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect - github.com/go-git/go-git/v5 v5.8.1 // indirect + github.com/go-git/go-git/v5 v5.9.0 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/uuid v1.3.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -70,7 +70,7 @@ require ( golang.org/x/net v0.17.0 // indirect golang.org/x/sys v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect - golang.org/x/tools v0.13.0 // indirect + golang.org/x/tools v0.14.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/go.sum b/go.sum index 9b4ae169..50d6d1ff 100644 --- a/go.sum +++ b/go.sum @@ -68,8 +68,8 @@ github.com/fatih/color v1.14.1 h1:qfhVLaG5s+nCROl1zJsZRxFeYrHLqWroPOQ8BWiNb4w= github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= -github.com/go-git/go-git/v5 v5.8.1 h1:Zo79E4p7TRk0xoRgMq0RShiTHGKcKI4+DI6BfJc/Q+A= -github.com/go-git/go-git/v5 v5.8.1/go.mod h1:FHFuoD6yGz5OSKEBK+aWN9Oah0q54Jxl0abmj6GnqAo= +github.com/go-git/go-git/v5 v5.9.0 h1:cD9SFA7sHVRdJ7AYck1ZaAa/yeuBvGPxwXDL8cxrObY= +github.com/go-git/go-git/v5 v5.9.0/go.mod h1:RKIqga24sWdMGZF+1Ekv9kylsDz6LzdTSI2s/OsZWE0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= @@ -180,8 +180,8 @@ github.com/launchdarkly/api-client-go/v7 v7.1.1 h1:3VBkFt9xHljMw5KDlVFDUogxfH78Y github.com/launchdarkly/api-client-go/v7 v7.1.1/go.mod h1:GVl1inKsWoKX3yLgdqrjxWw8k4ih0HlSmdnrhi5NNDs= github.com/launchdarkly/json-patch v0.0.0-20180720210516-dd68d883319f h1:jfiPiz2hE/7mHv2NOS4cm07sSJCsKlbxmR7pzPhhvpU= github.com/launchdarkly/json-patch v0.0.0-20180720210516-dd68d883319f/go.mod h1:CHbYdMs8UjvNnS2fatlQvi4UYnBTRYGxRHc/0kQupSQ= -github.com/launchdarkly/ld-find-code-refs/v2 v2.11.0 h1:6mN0vGwr6QXTy2xth83ToRwN/Uq9QW5gvbSm585fVRU= -github.com/launchdarkly/ld-find-code-refs/v2 v2.11.0/go.mod h1:eydjFkict7+Sg7jDIhg1Qgp8SzEfBSbBjABSYb097cA= +github.com/launchdarkly/ld-find-code-refs/v2 v2.11.4 h1:kIKFvpaO+zGjvDNPiem5GwZZYFsdA4CLPtJJzFLmM8E= +github.com/launchdarkly/ld-find-code-refs/v2 v2.11.4/go.mod h1:fbIEMBJ4dZYNRC0vrc7V4s2sUWlZhujVef3k8pPGv88= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= @@ -216,7 +216,7 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= github.com/sagikazarmark/locafero v0.3.0 h1:zT7VEGWC2DTflmccN/5T1etyKvxSxpHsjb9cJvm4SvQ= github.com/sagikazarmark/locafero v0.3.0/go.mod h1:w+v7UsPNFwzF1cHuOajOOzoq4U7v/ig1mpRjqV+Bu1U= github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= @@ -481,8 +481,8 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ= -golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/vendor/github.com/launchdarkly/ld-find-code-refs/v2/aliases/alias.go b/vendor/github.com/launchdarkly/ld-find-code-refs/v2/aliases/alias.go index b2b34454..c4a27ae7 100644 --- a/vendor/github.com/launchdarkly/ld-find-code-refs/v2/aliases/alias.go +++ b/vendor/github.com/launchdarkly/ld-find-code-refs/v2/aliases/alias.go @@ -120,10 +120,10 @@ func generateAliasesFromCommand(a options.Alias, flag, dir string) ([]string, er cmd.Dir = dir stdout, err := cmd.Output() if err != nil { - return nil, fmt.Errorf("filepattern '%s': failed to execute alias command: %w", a.Name, err) + return nil, fmt.Errorf("command '%s': failed to execute alias command: %w", a.Name, err) } if err := json.Unmarshal(stdout, &ret); err != nil { - return nil, fmt.Errorf("filepattern '%s': could not unmarshal json output of alias command: %w", a.Name, err) + return nil, fmt.Errorf("command '%s': could not unmarshal json output of alias command: %w", a.Name, err) } return ret, err diff --git a/vendor/github.com/launchdarkly/ld-find-code-refs/v2/aliases/aliases-test.py b/vendor/github.com/launchdarkly/ld-find-code-refs/v2/aliases/aliases-test.py new file mode 100644 index 00000000..68b7dffe --- /dev/null +++ b/vendor/github.com/launchdarkly/ld-find-code-refs/v2/aliases/aliases-test.py @@ -0,0 +1,8 @@ +#! /usr/bin/env python +import sys,json +for flag_key in sys.stdin: + flag_key = flag_key.strip() + alias = '_'.join([word.capitalize() for word in flag_key.split('_')]) + aliases = json.dumps([alias]) + print(aliases) + break diff --git a/vendor/github.com/launchdarkly/ld-find-code-refs/v2/internal/version/version.go b/vendor/github.com/launchdarkly/ld-find-code-refs/v2/internal/version/version.go index b10e8481..8d687207 100644 --- a/vendor/github.com/launchdarkly/ld-find-code-refs/v2/internal/version/version.go +++ b/vendor/github.com/launchdarkly/ld-find-code-refs/v2/internal/version/version.go @@ -1,3 +1,3 @@ package version -const Version = "2.11.0" +const Version = "2.11.4" diff --git a/vendor/golang.org/x/tools/godoc/vfs/vfs.go b/vendor/golang.org/x/tools/godoc/vfs/vfs.go index d70526d5..f4ec2aa7 100644 --- a/vendor/golang.org/x/tools/godoc/vfs/vfs.go +++ b/vendor/golang.org/x/tools/godoc/vfs/vfs.go @@ -8,7 +8,6 @@ package vfs // import "golang.org/x/tools/godoc/vfs" import ( "io" - "io/ioutil" "os" ) @@ -54,5 +53,5 @@ func ReadFile(fs Opener, path string) ([]byte, error) { return nil, err } defer rc.Close() - return ioutil.ReadAll(rc) + return io.ReadAll(rc) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 7711a2dd..63dec9ef 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -16,8 +16,8 @@ github.com/davecgh/go-spew/spew # github.com/fsnotify/fsnotify v1.6.0 ## explicit; go 1.16 github.com/fsnotify/fsnotify -# github.com/go-git/go-git/v5 v5.8.1 -## explicit; go 1.18 +# github.com/go-git/go-git/v5 v5.9.0 +## explicit; go 1.19 github.com/go-git/go-git/v5/plumbing github.com/go-git/go-git/v5/plumbing/hash # github.com/golang/protobuf v1.5.3 @@ -85,7 +85,7 @@ github.com/launchdarkly/api-client-go/v7 # github.com/launchdarkly/json-patch v0.0.0-20180720210516-dd68d883319f ## explicit github.com/launchdarkly/json-patch -# github.com/launchdarkly/ld-find-code-refs/v2 v2.11.0 +# github.com/launchdarkly/ld-find-code-refs/v2 v2.11.4 ## explicit; go 1.20 github.com/launchdarkly/ld-find-code-refs/v2/aliases github.com/launchdarkly/ld-find-code-refs/v2/flags @@ -234,7 +234,7 @@ golang.org/x/text/internal/utf8internal golang.org/x/text/runes golang.org/x/text/transform golang.org/x/text/unicode/norm -# golang.org/x/tools v0.13.0 +# golang.org/x/tools v0.14.0 ## explicit; go 1.18 golang.org/x/tools/godoc/util golang.org/x/tools/godoc/vfs