diff --git a/go.mod b/go.mod index eb91c2f7fecc..e9813e534bb9 100644 --- a/go.mod +++ b/go.mod @@ -115,7 +115,7 @@ require ( github.com/yeya24/promlinter v0.2.0 github.com/ykadowak/zerologlint v0.1.3 gitlab.com/bosi/decorder v0.2.3 - go.tmz.dev/musttag v0.7.0 + go.tmz.dev/musttag v0.7.1 golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea golang.org/x/tools v0.10.0 gopkg.in/yaml.v3 v3.0.1 diff --git a/go.sum b/go.sum index 4b08a3c437fe..df7abf9ef1a2 100644 --- a/go.sum +++ b/go.sum @@ -586,8 +586,8 @@ go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.tmz.dev/musttag v0.7.0 h1:QfytzjTWGXZmChoX0L++7uQN+yRCPfyFm+whsM+lfGc= -go.tmz.dev/musttag v0.7.0/go.mod h1:oTFPvgOkJmp5kYL02S8+jrH0eLrBIl57rzWeA26zDEM= +go.tmz.dev/musttag v0.7.1 h1:9lFmeSFnFfPuMq4IksHGomItE6NgKMNW2Nt2FPOhCfU= +go.tmz.dev/musttag v0.7.1/go.mod h1:oJLkpR56EsIryktZJk/B0IroSMi37YWver47fibGh5U= go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= diff --git a/test/testdata/musttag.go b/test/testdata/musttag.go index d091fee1bccb..ebb6ce69c09d 100644 --- a/test/testdata/musttag.go +++ b/test/testdata/musttag.go @@ -8,7 +8,7 @@ import ( // builtin functions: func musttagJSON() { - var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at test(/|\\\\)testdata(/|\\\\)musttag.go:15:2" + var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at " Name string Email string `json:"email"` } diff --git a/test/testdata/musttag_custom.go b/test/testdata/musttag_custom.go index 41e2da2c7542..537c669749b3 100644 --- a/test/testdata/musttag_custom.go +++ b/test/testdata/musttag_custom.go @@ -9,7 +9,7 @@ import ( // builtin functions: func musttagJSONCustom() { - var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at test(/|\\\\)testdata(/|\\\\)musttag_custom.go:16:2" + var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at " Name string Email string `json:"email"` } @@ -18,7 +18,7 @@ func musttagJSONCustom() { // custom functions from config: func musttagASN1Custom() { - var user struct { // want "`anonymous struct` should be annotated with the `asn1` tag as it is passed to `asn1.Marshal` at test(/|\\\\)testdata(/|\\\\)musttag_custom.go:25:2" + var user struct { // want "`anonymous struct` should be annotated with the `asn1` tag as it is passed to `asn1.Marshal` at " Name string Email string `asn1:"email"` }