From bbca6e775365cbaa889d22936b970c35962f1afb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 17:15:34 +0000 Subject: [PATCH] Bump github.com/emicklei/dot from 1.6.1 to 1.6.2 Bumps [github.com/emicklei/dot](https://github.com/emicklei/dot) from 1.6.1 to 1.6.2. - [Changelog](https://github.com/emicklei/dot/blob/master/CHANGES.md) - [Commits](https://github.com/emicklei/dot/compare/v1.6.1...v1.6.2) --- updated-dependencies: - dependency-name: github.com/emicklei/dot dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/emicklei/dot/CHANGES.md | 4 ++++ vendor/github.com/emicklei/dot/README.md | 1 - vendor/github.com/emicklei/dot/graph.go | 5 +++++ vendor/github.com/emicklei/dot/graph_options.go | 6 +++++- vendor/modules.txt | 2 +- 7 files changed, 18 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index b716a31..3e275bc 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/frapposelli/wwhrd go 1.22 require ( - github.com/emicklei/dot v1.6.1 + github.com/emicklei/dot v1.6.2 github.com/google/licensecheck v0.3.1 github.com/jessevdk/go-flags v1.5.0 github.com/sirupsen/logrus v1.9.3 diff --git a/go.sum b/go.sum index 20582b2..1169fc9 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/emicklei/dot v1.6.1 h1:ujpDlBkkwgWUY+qPId5IwapRW/xEoligRSYjioR6DFI= -github.com/emicklei/dot v1.6.1/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= +github.com/emicklei/dot v1.6.2 h1:08GN+DD79cy/tzN6uLCT84+2Wk9u+wvqP+Hkx/dIR8A= +github.com/emicklei/dot v1.6.2/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= github.com/google/licensecheck v0.3.1 h1:QoxgoDkaeC4nFrtGN1jV7IPmDCHFNIVh54e5hSt6sPs= github.com/google/licensecheck v0.3.1/go.mod h1:ORkR35t/JjW+emNKtfJDII0zlciG9JgbT7SmsohlHmY= github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc= diff --git a/vendor/github.com/emicklei/dot/CHANGES.md b/vendor/github.com/emicklei/dot/CHANGES.md index c32ac74..9ced044 100644 --- a/vendor/github.com/emicklei/dot/CHANGES.md +++ b/vendor/github.com/emicklei/dot/CHANGES.md @@ -1,6 +1,10 @@ # Change history of the dot package +## v1.6.2 + +- fix issue #38 : incorrect handling of strict option (thx kiambogo) + ## v1.6.1 - 2024-01-17 - deprecated MermaidShapeCirle => use MermaidShapeCircle diff --git a/vendor/github.com/emicklei/dot/README.md b/vendor/github.com/emicklei/dot/README.md index 2a3005b..cb24e17 100644 --- a/vendor/github.com/emicklei/dot/README.md +++ b/vendor/github.com/emicklei/dot/README.md @@ -1,6 +1,5 @@ ## dot - little helper package in Go for the graphviz dot language -[![Build Status](https://travis-ci.org/emicklei/proto.png)](https://travis-ci.org/emicklei/dot) [![Go Report Card](https://goreportcard.com/badge/github.com/emicklei/dot)](https://goreportcard.com/report/github.com/emicklei/dot) [![GoDoc](https://pkg.go.dev/badge/github.com/emicklei/dot)](https://pkg.go.dev/github.com/emicklei/dot) [![codecov](https://codecov.io/gh/emicklei/dot/branch/master/graph/badge.svg)](https://codecov.io/gh/emicklei/dot) diff --git a/vendor/github.com/emicklei/dot/graph.go b/vendor/github.com/emicklei/dot/graph.go index fa5ece8..cfd23e3 100644 --- a/vendor/github.com/emicklei/dot/graph.go +++ b/vendor/github.com/emicklei/dot/graph.go @@ -12,6 +12,7 @@ import ( type Graph struct { AttributesMap id string + isStrict bool graphType string seq int nodes map[string]Node @@ -28,6 +29,7 @@ type Graph struct { func NewGraph(options ...GraphOption) *Graph { graph := &Graph{ AttributesMap: AttributesMap{attributes: map[string]interface{}{}}, + isStrict: false, graphType: Directed.Name, nodes: map[string]Node{}, edgesFrom: map[string][]Edge{}, @@ -268,6 +270,9 @@ func (g *Graph) Write(w io.Writer) { // IndentedWrite write the graph to a writer using simple TAB indentation. func (g *Graph) IndentedWrite(w *IndentWriter) { + if g.isStrict && g.graphType != Sub.Name { + fmt.Fprintf(w, "strict ") + } fmt.Fprintf(w, "%s %s {", g.graphType, g.id) w.NewLineIndentWhile(func() { // subgraphs diff --git a/vendor/github.com/emicklei/dot/graph_options.go b/vendor/github.com/emicklei/dot/graph_options.go index 2dc3abc..bd3482c 100644 --- a/vendor/github.com/emicklei/dot/graph_options.go +++ b/vendor/github.com/emicklei/dot/graph_options.go @@ -11,7 +11,7 @@ func (o ClusterOption) Apply(g *Graph) { } var ( - Strict = GraphTypeOption{"strict"} + Strict = GraphTypeOption{"strict"} // only for graph and digraph, not for subgraph Undirected = GraphTypeOption{"graph"} Directed = GraphTypeOption{"digraph"} Sub = GraphTypeOption{"subgraph"} @@ -22,5 +22,9 @@ type GraphTypeOption struct { } func (o GraphTypeOption) Apply(g *Graph) { + if o.Name == Strict.Name { + g.isStrict = true + return + } g.graphType = o.Name } diff --git a/vendor/modules.txt b/vendor/modules.txt index e8eaef9..e7e231e 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,7 +1,7 @@ # github.com/davecgh/go-spew v1.1.1 ## explicit github.com/davecgh/go-spew/spew -# github.com/emicklei/dot v1.6.1 +# github.com/emicklei/dot v1.6.2 ## explicit; go 1.13 github.com/emicklei/dot # github.com/google/licensecheck v0.3.1