diff --git a/lib/manager/gomod/__snapshots__/artifacts.spec.ts.snap b/lib/manager/gomod/__snapshots__/artifacts.spec.ts.snap index 73e9ebdcdf8c2344f4d25f6feb3c1baff55a1226..6e0ee06a4a9eb53fb7fcef28528b144b8ce1f9c0 100644 --- a/lib/manager/gomod/__snapshots__/artifacts.spec.ts.snap +++ b/lib/manager/gomod/__snapshots__/artifacts.spec.ts.snap @@ -631,7 +631,7 @@ Array [ }, }, Object { - "cmd": "go mod upgrade --mod-name=github.com/google/go-github/v24 -t=28", + "cmd": "mod upgrade --mod-name=github.com/google/go-github/v24 -t=28", "options": Object { "cwd": "/tmp/github/some/repo", "encoding": "utf-8", @@ -784,7 +784,7 @@ Array [ }, }, Object { - "cmd": "go mod upgrade --mod-name=github.com/google/go-github/v24 -t=28", + "cmd": "mod upgrade --mod-name=github.com/google/go-github/v24 -t=28", "options": Object { "cwd": "/tmp/github/some/repo", "encoding": "utf-8", @@ -937,7 +937,7 @@ Array [ }, }, Object { - "cmd": "go mod upgrade --mod-name=github.com/google/go-github/v24 -t=28", + "cmd": "mod upgrade --mod-name=github.com/google/go-github/v24 -t=28", "options": Object { "cwd": "/tmp/github/some/repo", "encoding": "utf-8", diff --git a/lib/manager/gomod/artifacts.ts b/lib/manager/gomod/artifacts.ts index da0b89a3e5aed78099b3e0449fd29584aa52d164..d76968ddf60293c501e9c3d544c5aead6d96a14e 100644 --- a/lib/manager/gomod/artifacts.ts +++ b/lib/manager/gomod/artifacts.ts @@ -37,7 +37,7 @@ function getUpdateImportPathCmds( ): string[] { const updateImportCommands = updatedDeps .filter((x) => !x.startsWith('gopkg.in')) - .map((depName) => `go mod upgrade --mod-name=${depName} -t=${newMajor}`); + .map((depName) => `mod upgrade --mod-name=${depName} -t=${newMajor}`); if (updateImportCommands.length > 0) { let installMarwanModArgs =