Skip to content

Commit

Permalink
build(deps): bump github.com/goccy/go-graphviz from 0.1.3 to 0.2.2 (#96)
Browse files Browse the repository at this point in the history
Bumps
[github.com/goccy/go-graphviz](https://github.com/goccy/go-graphviz)
from 0.1.3 to 0.2.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/goccy/go-graphviz/releases">github.com/goccy/go-graphviz's
releases</a>.</em></p>
<blockquote>
<h2>0.2.2</h2>
<h2>What's Changed</h2>
<ul>
<li>Support font loader by <a
href="https://github.com/goccy"><code>@​goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-graphviz/pull/94">goccy/go-graphviz#94</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/goccy/go-graphviz/compare/v0.2.1...v0.2.2">https://github.com/goccy/go-graphviz/compare/v0.2.1...v0.2.2</a></p>
<h2>0.2.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Support filled beziercurve rendering by <a
href="https://github.com/goccy"><code>@​goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-graphviz/pull/92">goccy/go-graphviz#92</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/goccy/go-graphviz/compare/v0.2.0...v0.2.1">https://github.com/goccy/go-graphviz/compare/v0.2.0...v0.2.1</a></p>
<h2>0.2.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Support wasm based bindings by <a
href="https://github.com/goccy"><code>@​goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-graphviz/pull/90">goccy/go-graphviz#90</a></li>
<li>Update go modules by <a
href="https://github.com/goccy"><code>@​goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-graphviz/pull/91">goccy/go-graphviz#91</a></li>
<li>add cgraph setters for fontname by <a
href="https://github.com/TravisYeah"><code>@​TravisYeah</code></a> in <a
href="https://redirect.github.com/goccy/go-graphviz/pull/89">goccy/go-graphviz#89</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/TravisYeah"><code>@​TravisYeah</code></a> made
their first contribution in <a
href="https://redirect.github.com/goccy/go-graphviz/pull/89">goccy/go-graphviz#89</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/goccy/go-graphviz/compare/v0.1.3...v0.2.0">https://github.com/goccy/go-graphviz/compare/v0.1.3...v0.2.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/goccy/go-graphviz/commit/2236280a66c56df10fa34883737d982e9366e9b2"><code>2236280</code></a>
support font (<a
href="https://redirect.github.com/goccy/go-graphviz/issues/94">#94</a>)</li>
<li><a
href="https://github.com/goccy/go-graphviz/commit/e4e4dd3802c3b78eb694845c065fdd5188020f3f"><code>e4e4dd3</code></a>
Support filled beziercurve rendering (<a
href="https://redirect.github.com/goccy/go-graphviz/issues/92">#92</a>)</li>
<li><a
href="https://github.com/goccy/go-graphviz/commit/698a12c762a5d9977b84313080cd0a7a805d60c1"><code>698a12c</code></a>
add cgraph setters for fontname (<a
href="https://redirect.github.com/goccy/go-graphviz/issues/89">#89</a>)</li>
<li><a
href="https://github.com/goccy/go-graphviz/commit/4b44d4ac33c0c63a4a00a289db45f57010955775"><code>4b44d4a</code></a>
Update go modules (<a
href="https://redirect.github.com/goccy/go-graphviz/issues/91">#91</a>)</li>
<li><a
href="https://github.com/goccy/go-graphviz/commit/1c5cc398b34405f9a8f008e5e47a910b9ff01aff"><code>1c5cc39</code></a>
Support wasm based bindings (<a
href="https://redirect.github.com/goccy/go-graphviz/issues/90">#90</a>)</li>
<li>See full diff in <a
href="https://github.com/goccy/go-graphviz/compare/v0.1.3...v0.2.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/goccy/go-graphviz&package-manager=go_modules&previous-version=0.1.3&new-version=0.2.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lee ByeongJun <[email protected]>
  • Loading branch information
dependabot[bot] and notJoon authored Oct 22, 2024
1 parent 8d6042f commit 38d3b26
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 15 deletions.
8 changes: 5 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@ go 1.22.2
require (
github.com/fatih/color v1.17.0
github.com/fzipp/gocyclo v0.6.0
github.com/goccy/go-graphviz v0.1.3
github.com/goccy/go-graphviz v0.2.2
github.com/stretchr/testify v1.9.0
golang.org/x/tools v0.26.0
)

require (
github.com/flopp/go-findfont v0.1.0 // indirect
github.com/fogleman/gg v1.3.0 // indirect
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/tetratelabs/wazero v1.8.1 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/image v0.18.0 // indirect
golang.org/x/image v0.21.0 // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/text v0.19.0 // indirect
)

require (
Expand Down
24 changes: 14 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,40 +1,42 @@
github.com/corona10/goimagehash v1.0.2 h1:pUfB0LnsJASMPGEZLj7tGY251vF+qLGqOgEP4rUs6kA=
github.com/corona10/goimagehash v1.0.2/go.mod h1:/l9umBhvcHQXVtQO1V6Gp1yD20STawkhRnnX0D1bvVI=
github.com/corona10/goimagehash v1.1.0 h1:teNMX/1e+Wn/AYSbLHX8mj+mF9r60R1kBeqE9MkoYwI=
github.com/corona10/goimagehash v1.1.0/go.mod h1:VkvE0mLn84L4aF8vCb6mafVajEb6QYMHl2ZJLn0mOGI=
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/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4=
github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI=
github.com/flopp/go-findfont v0.1.0 h1:lPn0BymDUtJo+ZkV01VS3661HL6F4qFlkhcJN55u6mU=
github.com/flopp/go-findfont v0.1.0/go.mod h1:wKKxRDjD024Rh7VMwoU90i6ikQRCr+JTHB5n4Ejkqvw=
github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8=
github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo=
github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA=
github.com/goccy/go-graphviz v0.1.3 h1:Pkt8y4FBnBNI9tfSobpoN5qy1qMNqRXPQYvLhaSUasY=
github.com/goccy/go-graphviz v0.1.3/go.mod h1:pMYpbAqJT10V8dzV1JN/g/wUlG/0imKPzn3ZsrchGCI=
github.com/goccy/go-graphviz v0.2.2 h1:5Q8eJlU8SiGQtjwkDMtoaz0VMbvn+1NqbzfS/OvXcjw=
github.com/goccy/go-graphviz v0.2.2/go.mod h1:5LlXMuQb+3UcNJGqhtkrfDFlCwrWZ6K0MCJyuP9cl7A=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5 h1:BvoENQQU+fZ9uukda/RzCAL/191HHwJA5b13R6diVlY=
github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/tetratelabs/wazero v1.8.1 h1:NrcgVbWfkWvVc4UtT4LRLDf91PsOzDzefMdwhLfA550=
github.com/tetratelabs/wazero v1.8.1/go.mod h1:yAI0XTsMBhREkM/YDAK/zNou3GoiAce1P6+rp/wQhjs=
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
golang.org/x/image v0.18.0 h1:jGzIakQa/ZXI1I0Fxvaa9W7yP25TqT6cHIHn+6CqvSQ=
golang.org/x/image v0.18.0/go.mod h1:4yyo5vMFQjVjUcVk4jEQcU9MGy/rulF5WvUILseCM2E=
golang.org/x/image v0.21.0 h1:c5qV36ajHpdj4Qi0GnE0jUc/yuo33OLFaa0d+crTD5s=
golang.org/x/image v0.21.0/go.mod h1:vUbsLavqK/W303ZroQQVKQ+Af3Yl6Uz1Ppu5J/cLz78=
golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0=
golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
Expand All @@ -43,6 +45,8 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM=
golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ=
golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
Expand Down
8 changes: 6 additions & 2 deletions internal/analysis/cfg/cfg.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cfg

import (
"context"
"fmt"
"go/ast"
"go/token"
Expand Down Expand Up @@ -54,9 +55,12 @@ func RenderToGraphVizFile(dotContent []byte, filename string) error {
if err != nil {
return err
}
g := graphviz.New()
g, err := graphviz.New(context.Background())
if err != nil {
return err
}
defer g.Close()
err = g.RenderFilename(graph, graphviz.SVG, filename)
err = g.RenderFilename(context.Background(), graph, graphviz.SVG, filename)
if err != nil {
return err
}
Expand Down
6 changes: 6 additions & 0 deletions internal/analysis/cfg/cfg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"go/token"
"go/types"
"os"
"os/exec"
"path/filepath"
"regexp"
"strings"
Expand Down Expand Up @@ -1008,6 +1009,11 @@ splines="ortho";

func TestRenderToGraphVizFile(t *testing.T) {
t.Parallel()

if _, err := exec.LookPath("dot"); err != nil {
t.Skip("GraphViz is not installed. Skipping test.")
}

tmpDir, err := os.MkdirTemp("", "cfg_test")
assert.NoError(t, err)
defer os.RemoveAll(tmpDir)
Expand Down

0 comments on commit 38d3b26

Please sign in to comment.