Skip to content

Commit

Permalink
test(manager/gomod): migrate to fs.readLocalFile (#13099)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
  • Loading branch information
3 people committed Dec 15, 2021
1 parent 903ffd0 commit 83b87c0
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 131 deletions.
38 changes: 3 additions & 35 deletions lib/manager/gomod/__snapshots__/artifacts.spec.ts.snap
Expand Up @@ -31,7 +31,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -63,7 +62,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -93,7 +91,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -140,7 +137,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -170,7 +166,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -195,7 +190,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -220,7 +214,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -250,7 +243,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -283,7 +275,7 @@ Array [
},
},
Object {
"cmd": "docker run --rm --name=renovate_go --label=renovate_child -v \\"/tmp/github/some/repo\\":\\"/tmp/github/some/repo\\" -v \\"/tmp/renovate/cache\\":\\"/tmp/renovate/cache\\" -e GOPATH -e GOPROXY -e GOPRIVATE -e GONOPROXY -e GONOSUMDB -e GOFLAGS -e CGO_ENABLED -e GIT_CONFIG_KEY_0 -e GIT_CONFIG_VALUE_0 -e GIT_CONFIG_COUNT -w \\"/tmp/github/some/repo\\" renovate/go:latest bash -l -c \\"go get -d ./...\\"",
"cmd": "docker run --rm --name=renovate_go --label=renovate_child -v \\"/tmp/github/some/repo\\":\\"/tmp/github/some/repo\\" -v \\"/tmp/renovate/cache\\":\\"/tmp/renovate/cache\\" -e GOPROXY -e GOPRIVATE -e GONOPROXY -e GONOSUMDB -e GOFLAGS -e CGO_ENABLED -e GIT_CONFIG_KEY_0 -e GIT_CONFIG_VALUE_0 -e GIT_CONFIG_COUNT -w \\"/tmp/github/some/repo\\" renovate/go:latest bash -l -c \\"go get -d ./...\\"",
"options": Object {
"cwd": "/tmp/github/some/repo",
"encoding": "utf-8",
Expand All @@ -295,7 +287,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -328,7 +319,7 @@ Array [
},
},
Object {
"cmd": "docker run --rm --name=renovate_go --label=renovate_child -v \\"/tmp/github/some/repo\\":\\"/tmp/github/some/repo\\" -v \\"/tmp/renovate/cache\\":\\"/tmp/renovate/cache\\" -e GOPATH -e GOPROXY -e GOPRIVATE -e GONOPROXY -e GONOSUMDB -e GOFLAGS -e CGO_ENABLED -w \\"/tmp/github/some/repo\\" renovate/go:latest bash -l -c \\"go get -d ./... && go mod tidy && go mod tidy\\"",
"cmd": "docker run --rm --name=renovate_go --label=renovate_child -v \\"/tmp/github/some/repo\\":\\"/tmp/github/some/repo\\" -v \\"/tmp/renovate/cache\\":\\"/tmp/renovate/cache\\" -e GOPROXY -e GOPRIVATE -e GONOPROXY -e GONOSUMDB -e GOFLAGS -e CGO_ENABLED -w \\"/tmp/github/some/repo\\" renovate/go:latest bash -l -c \\"go get -d ./... && go mod tidy && go mod tidy\\"",
"options": Object {
"cwd": "/tmp/github/some/repo",
"encoding": "utf-8",
Expand All @@ -337,7 +328,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -370,7 +360,7 @@ Array [
},
},
Object {
"cmd": "docker run --rm --name=renovate_go --label=renovate_child -v \\"/tmp/github/some/repo\\":\\"/tmp/github/some/repo\\" -v \\"/tmp/renovate/cache\\":\\"/tmp/renovate/cache\\" -e GOPATH -e GOPROXY -e GOPRIVATE -e GONOPROXY -e GONOSUMDB -e GOFLAGS -e CGO_ENABLED -w \\"/tmp/github/some/repo\\" renovate/go:latest bash -l -c \\"go get -d ./...\\"",
"cmd": "docker run --rm --name=renovate_go --label=renovate_child -v \\"/tmp/github/some/repo\\":\\"/tmp/github/some/repo\\" -v \\"/tmp/renovate/cache\\":\\"/tmp/renovate/cache\\" -e GOPROXY -e GOPRIVATE -e GONOPROXY -e GONOSUMDB -e GOFLAGS -e CGO_ENABLED -w \\"/tmp/github/some/repo\\" renovate/go:latest bash -l -c \\"go get -d ./...\\"",
"options": Object {
"cwd": "/tmp/github/some/repo",
"encoding": "utf-8",
Expand All @@ -379,7 +369,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -409,7 +398,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -439,7 +427,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -464,7 +451,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -489,7 +475,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -514,7 +499,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -539,7 +523,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -569,7 +552,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -594,7 +576,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -619,7 +600,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -644,7 +624,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -669,7 +648,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -699,7 +677,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -724,7 +701,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -749,7 +725,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -774,7 +749,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -799,7 +773,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down Expand Up @@ -829,7 +802,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -854,7 +826,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -879,7 +850,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -904,7 +874,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand All @@ -929,7 +898,6 @@ Array [
"GOFLAGS": "-modcacherw",
"GONOPROXY": "noproxy.example.com/*",
"GONOSUMDB": "1",
"GOPATH": "/tmp/renovate/cache/others/go",
"GOPRIVATE": "private.example.com/*",
"GOPROXY": "proxy.example.com",
"HOME": "/home/user",
Expand Down

0 comments on commit 83b87c0

Please sign in to comment.