Repository: crazy-max/diun
Pull request #213 (2020-11-09 07:56:33)

Bump github.com/russross/blackfriday/v2 from 2.0.1 to 2.1.0
Bumps [github.com/russross/blackfriday/v2](https://github.com/russross/blackfriday) from 2.0.1 to 2.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/russross/blackfriday/releases">github.com/russross/blackfriday/v2's releases</a>.</em></p>
<blockquote>
<h2>v2.1.0</h2>
<p>A minor release, mainly aimed at resolving ambiguity about the import path for blackfriday v2 and delivering minor fixes since last release:</p>
<ul>
<li>Committed to <code>github.com/russross/blackfriday/v2</code> as the canonical import path for blackfriday v2. (Issue <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/587">#587</a>)</li>
<li>Reduced the amount of dependencies. (PRs <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/509">#509</a> and <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/515">#515</a>)</li>
<li>Added a <code>SanitizedAnchorName</code> function. (PR <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/509">#509</a>)</li>
<li>Added <code>Node.IsContainer</code> and <code>Node.IsLeaf</code> methods. (PR <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/540">#540</a>)</li>
<li>Fixed parsing of links that end with a double backslashes. (Issue <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/510">#510</a>)</li>
<li>Fixed an issue where fence length wasn't computed. (PR <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/505">#505</a>)</li>
<li>Improved the default value for the <code>HTMLRendererParameters.FootnoteReturnLinkContents</code> field. (PR <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/547">#547</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/russross/blackfriday/commit/4c9bf9512682b995722660a4196c0013228e2049"><code>4c9bf95</code></a> v2/README: make a definitive decision on v2 import path</li>
<li><a href="https://github.com/russross/blackfriday/commit/acedacffef10e8f1943455d4dd8bb8f4dfe8d0f8"><code>acedacf</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/468">#468</a> from ruqqq/v2</li>
<li><a href="https://github.com/russross/blackfriday/commit/3b2b20c8cb0632a0442ea9694d170b8aea985549"><code>3b2b20c</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/547">#547</a> from adiabatic/v2</li>
<li><a href="https://github.com/russross/blackfriday/commit/a1ae674f6fdc9265925c01731dc0fe6532fff546"><code>a1ae674</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/571">#571</a> from bkmgit/v2</li>
<li><a href="https://github.com/russross/blackfriday/commit/df341a4ed85b3aa2ee8cd16874520f2f789e4568"><code>df341a4</code></a> Update Markdown Documentation - Basics.text</li>
<li><a href="https://github.com/russross/blackfriday/commit/5ba3beb8b0f6f1e1cc7ab1355e4ca6368755d5fd"><code>5ba3beb</code></a> Update Markdown Documentation - Basics.html</li>
<li><a href="https://github.com/russross/blackfriday/commit/63f131c23953b35fa4625e35bde612a485f4bba7"><code>63f131c</code></a> Update Markdown Documentation - Basics.html</li>
<li><a href="https://github.com/russross/blackfriday/commit/a178dd93fe2be7de3fa030f4e06c410e1c1d2d0d"><code>a178dd9</code></a> Update Markdown Documentation - Basics.text</li>
<li><a href="https://github.com/russross/blackfriday/commit/3e56bb68c8876389c631e9e318ce3c092a0906db"><code>3e56bb6</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/russross/blackfriday/issues/540">#540</a> from twpayne/export-is-container</li>
<li><a href="https://github.com/russross/blackfriday/commit/412ca19665064fba55ff7624ba5bcab9afdfb4d0"><code>412ca19</code></a> Use ↩ as default params.FootnoteReturnLinkContents</li>
<li>Additional commits viewable in <a href="https://github.com/russross/blackfriday/compare/v2.0.1...v2.1.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/russross/blackfriday/v2&package-manager=go_modules&previous-version=2.0.1&new-version=2.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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


</details>

codecov[bot]: # [Codecov](https://codecov.io/gh/crazy-max/diun/pull/213?src=pr&el=h1) Report
> Merging [#213](https://codecov.io/gh/crazy-max/diun/pull/213?src=pr&el=desc) (694afc8) into [master](https://codecov.io/gh/crazy-max/diun/commit/cab5df2ead0d51639f8a9312175fc0b576c78f2b?el=desc) (cab5df2) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/crazy-max/diun/pull/213/graphs/tree.svg?width=650&height=150&src=pr&token=phc5KYIjsV)](https://codecov.io/gh/crazy-max/diun/pull/213?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master     #213   +/-   ##
=======================================
  Coverage   70.33%   70.33%           
=======================================
  Files           7        7           
  Lines         236      236           
=======================================
  Hits          166      166           
  Misses         44       44           
  Partials       26       26           
```



------

[Continue to review full report at Codecov](https://codecov.io/gh/crazy-max/diun/pull/213?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/crazy-max/diun/pull/213?src=pr&el=footer). Last update [cab5df2...694afc8](https://codecov.io/gh/crazy-max/diun/pull/213?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).


Patch:
diff --git a/go.mod b/go.mod
index 12dab8f7..b004544b 100644
--- a/go.mod
+++ b/go.mod
@@ -6,7 +6,7 @@ require (
 	github.com/alecthomas/kong v0.2.11
 	github.com/containers/image/v5 v5.7.0
 	github.com/crazy-max/gohealthchecks v0.2.0
-	github.com/crazy-max/gonfig v0.3.0
+	github.com/crazy-max/gonfig v0.4.0
 	github.com/docker/docker v1.4.2-0.20200204220554-5f6d6f3f2203
 	github.com/docker/go-connections v0.4.0
 	github.com/eclipse/paho.mqtt.golang v1.2.0
@@ -24,7 +24,7 @@ require (
 	github.com/pkg/errors v0.9.1
 	github.com/robfig/cron/v3 v3.0.1
 	github.com/rs/zerolog v1.20.0
-	github.com/russross/blackfriday/v2 v2.0.1
+	github.com/russross/blackfriday/v2 v2.1.0
 	github.com/sirupsen/logrus v1.7.0
 	github.com/streadway/amqp v0.0.0-20200108173154-1c71cc93ed71
 	github.com/stretchr/testify v1.6.1
diff --git a/go.sum b/go.sum
index bdd7da39..b5558038 100644
--- a/go.sum
+++ b/go.sum
@@ -88,8 +88,8 @@ github.com/coreos/go-systemd/v22 v22.0.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+
 github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
 github.com/crazy-max/gohealthchecks v0.2.0 h1:r+L9PuTwq+EpmzffDrLvxk7Ps+SVU+f2T5JHvfAHbv0=
 github.com/crazy-max/gohealthchecks v0.2.0/go.mod h1:3DB7UfVoI5njYSAyqKkrBuBjf5OlmzjJZ1BlKC5+nWE=
-github.com/crazy-max/gonfig v0.3.0 h1:/HFdLQjXSNhImgeQgD2eXhc5svX4PhUkGSbl4fJRp4s=
-github.com/crazy-max/gonfig v0.3.0/go.mod h1:7vmzltkoa1RHpGB5fTom0ebnqelHdd7fzhtXTi8sVoQ=
+github.com/crazy-max/gonfig v0.4.0 h1:/PqxAatdrcaKyCZ+a6w7Ox68uZXVqCI36wUzYVfq3Y0=
+github.com/crazy-max/gonfig v0.4.0/go.mod h1:7vmzltkoa1RHpGB5fTom0ebnqelHdd7fzhtXTi8sVoQ=
 github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4=
 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=
@@ -330,6 +330,8 @@ github.com/rs/zerolog v1.20.0 h1:38k9hgtUBdxFwE34yS8rTHmHBa4eN16E4DJlv177LNs=
 github.com/rs/zerolog v1.20.0/go.mod h1:IzD0RJ65iWH0w97OQQebJEvTZYvsCUm9WVLWBQrJRjo=
 github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
 github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
+github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
+github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
 github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo=
 github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
 github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=


Test patch:
diff --git a/internal/config/config_test.go b/internal/config/config_test.go
index a4769959..cc04acb2 100644
--- a/internal/config/config_test.go
+++ b/internal/config/config_test.go
@@ -512,10 +512,10 @@ func TestValidation(t *testing.T) {
 			cfg, err := config.Load(tt.cli)
 			require.NoError(t, err)
 
-			dec, err := env.Encode(cfg)
+			dec, err := env.Encode("DIUN_", cfg)
 			require.NoError(t, err)
 			for _, value := range dec {
-				fmt.Println(fmt.Sprintf(`%s=%s`, strings.Replace(value.Name, "GONFIG_", "DIUN_", 1), value.Default))
+				fmt.Println(fmt.Sprintf(`%s=%s`, value.Name, value.Default))
 			}
 		})
 	}