Skip to content

Commit 45c17c1

Browse files
Bump get.porter.sh/magefiles from 0.6.8 to 0.6.9 (#3256)
* Bump get.porter.sh/magefiles from 0.6.8 to 0.6.9 Bumps [get.porter.sh/magefiles](https://github.com/getporter/magefiles) from 0.6.8 to 0.6.9. - [Release notes](https://github.com/getporter/magefiles/releases) - [Commits](getporter/magefiles@v0.6.8...v0.6.9) --- updated-dependencies: - dependency-name: get.porter.sh/magefiles dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fix linting errors Signed-off-by: Kim Christensen <kimworking@gmail.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Kim Christensen <kimworking@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kim Christensen <kimworking@gmail.com>
1 parent c2e24f1 commit 45c17c1

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ replace (
1919
)
2020

2121
require (
22-
get.porter.sh/magefiles v0.6.8
22+
get.porter.sh/magefiles v0.6.9
2323
github.com/Masterminds/semver/v3 v3.3.0
2424
github.com/PaesslerAG/jsonpath v0.1.1
2525
github.com/carolynvs/aferox v0.3.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqCl
1212
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
1313
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
1414
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
15-
get.porter.sh/magefiles v0.6.8 h1:1q0CmKgOtlP8IBXtRNLv2+r9tLiC96tpIPhTHX+HlUw=
16-
get.porter.sh/magefiles v0.6.8/go.mod h1:w37oTKICvvaEKR5KVB9UfN2EX30uYO9Qk0oRoz80DOU=
15+
get.porter.sh/magefiles v0.6.9 h1:fDrWzuuUgptBgbuc18IRDTUib+AGQtgn+TnXT3wAVJ0=
16+
get.porter.sh/magefiles v0.6.9/go.mod h1:w37oTKICvvaEKR5KVB9UfN2EX30uYO9Qk0oRoz80DOU=
1717
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 h1:He8afgbRMd7mFxO99hRNu+6tazq8nFF9lIwo9JFroBk=
1818
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8=
1919
github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20231105174938-2b5cbb29f3e2 h1:dIScnXFlF784X79oi7MzVT6GWqr/W1uUt0pB5CsDs9M=

pkg/plugins/pluggable/connection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func (c *PluginConnection) collectPluginLogs(ctx context.Context) {
339339

340340
switch pluginLog["@level"] {
341341
case "error":
342-
_ = span.Error(fmt.Errorf(msg))
342+
_ = span.Error(fmt.Errorf("%s", msg))
343343
case "warn":
344344
span.Warn(msg)
345345
case "info":

pkg/storage/plugins/mongodb_docker/store.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func EnsureMongoIsRunning(ctx context.Context, c *portercontext.Context, contain
155155
err = exec.Command("docker", "volume", "create", dataVol).Run()
156156
if err != nil {
157157
if exitErr, ok := err.(*exec.ExitError); ok {
158-
err = fmt.Errorf(string(exitErr.Stderr))
158+
err = fmt.Errorf("%s", string(exitErr.Stderr))
159159
}
160160
return nil, span.Error(fmt.Errorf("error creating %s docker volume: %w", dataVol, err))
161161
}
@@ -170,7 +170,7 @@ func EnsureMongoIsRunning(ctx context.Context, c *portercontext.Context, contain
170170
err := exec.Command("docker", "pull", mongoImg).Run()
171171
if err != nil {
172172
if exitErr, ok := err.(*exec.ExitError); ok {
173-
err = fmt.Errorf(string(exitErr.Stderr))
173+
err = fmt.Errorf("%s", string(exitErr.Stderr))
174174
}
175175
return span.Error(fmt.Errorf("error pulling %s: %w", mongoImg, err))
176176
}
@@ -186,7 +186,7 @@ func EnsureMongoIsRunning(ctx context.Context, c *portercontext.Context, contain
186186
err = mongoC.Start()
187187
if err != nil {
188188
if exitErr, ok := err.(*exec.ExitError); ok {
189-
err = fmt.Errorf(string(exitErr.Stderr))
189+
err = fmt.Errorf("%s", string(exitErr.Stderr))
190190
}
191191
return span.Error(fmt.Errorf("error running a mongo container for the mongodb-docker plugin: %w", err))
192192
}
@@ -200,15 +200,15 @@ func EnsureMongoIsRunning(ctx context.Context, c *portercontext.Context, contain
200200
}
201201
} else {
202202
if exitErr, ok := err.(*exec.ExitError); ok {
203-
err = fmt.Errorf(string(exitErr.Stderr))
203+
err = fmt.Errorf("%s", string(exitErr.Stderr))
204204
}
205205
return nil, span.Error(fmt.Errorf("error inspecting container %s: %w", container, err))
206206
}
207207
} else if !strings.Contains(string(containerStatus), `"Status": "running"`) { // Container is stopped
208208
err = exec.Command("docker", "rm", "-f", container).Run()
209209
if err != nil {
210210
if exitErr, ok := err.(*exec.ExitError); ok {
211-
err = fmt.Errorf(string(exitErr.Stderr))
211+
err = fmt.Errorf("%s", string(exitErr.Stderr))
212212
}
213213
return nil, span.Error(fmt.Errorf("error cleaning up stopped container %s: %w", container, err))
214214
}

0 commit comments

Comments
 (0)