mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-26 14:36:26 +00:00
Merge 8fd7c0dcff
into ef1cf5906c
This commit is contained in:
commit
dbddf3f13e
3 changed files with 30 additions and 30 deletions
|
@ -1545,7 +1545,7 @@ Also, approval rules overriding should not be [prevented in GitLab settings](htt
|
|||
|
||||
## goGetDirs
|
||||
|
||||
By default, Renovate will run `go get -d -t ./...` to update the `go.sum`.
|
||||
By default, Renovate will run `go get -t ./...` to update the `go.sum`.
|
||||
If you need to modify this path, for example in order to ignore directories, you can override the default `./...` value using this option:
|
||||
|
||||
```json
|
||||
|
|
|
@ -126,7 +126,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
).toBeNull();
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: {
|
||||
cwd: '/tmp/github/some/repo',
|
||||
env: {
|
||||
|
@ -172,7 +172,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: {
|
||||
cwd: '/tmp/github/some/repo',
|
||||
env: {
|
||||
|
@ -362,7 +362,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
{
|
||||
|
@ -428,7 +428,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
]);
|
||||
|
@ -510,7 +510,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
{
|
||||
|
@ -588,7 +588,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
' bash -l -c "' +
|
||||
'install-tool golang 1.23.3' +
|
||||
' && ' +
|
||||
'go get -d -t ./...' +
|
||||
'go get -t ./...' +
|
||||
'"',
|
||||
options: {
|
||||
cwd: '/tmp/github/some/repo',
|
||||
|
@ -632,7 +632,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
expect(execSnapshots).toMatchObject([
|
||||
{ cmd: 'install-tool golang 1.23.3' },
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: {
|
||||
cwd: '/tmp/github/some/repo',
|
||||
env: {},
|
||||
|
@ -671,7 +671,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
]);
|
||||
|
@ -753,7 +753,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
' bash -l -c "' +
|
||||
'install-tool golang 1.23.3' +
|
||||
' && ' +
|
||||
'go get -d -t ./...' +
|
||||
'go get -t ./...' +
|
||||
'"',
|
||||
options: {
|
||||
cwd: '/tmp/github/some/repo',
|
||||
|
@ -1263,7 +1263,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
' bash -l -c "' +
|
||||
'install-tool golang 1.23.3' +
|
||||
' && ' +
|
||||
'go get -d -t ./...' +
|
||||
'go get -t ./...' +
|
||||
' && ' +
|
||||
'go mod tidy' +
|
||||
' && ' +
|
||||
|
@ -1327,7 +1327,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
' bash -l -c "' +
|
||||
'install-tool golang 1.23.3' +
|
||||
' && ' +
|
||||
'go get -d -t ./...' +
|
||||
'go get -t ./...' +
|
||||
' && ' +
|
||||
'go mod tidy -compat=1.17' +
|
||||
' && ' +
|
||||
|
@ -1391,7 +1391,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
' bash -l -c "' +
|
||||
'install-tool golang 1.23.3' +
|
||||
' && ' +
|
||||
'go get -d -t ./...' +
|
||||
'go get -t ./...' +
|
||||
' && ' +
|
||||
'go mod tidy -compat=1.17 -e' +
|
||||
' && ' +
|
||||
|
@ -1455,7 +1455,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
' bash -l -c "' +
|
||||
'install-tool golang 1.23.3' +
|
||||
' && ' +
|
||||
'go get -d -t ./...' +
|
||||
'go get -t ./...' +
|
||||
' && ' +
|
||||
'go mod tidy -e' +
|
||||
' && ' +
|
||||
|
@ -1525,7 +1525,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
{
|
||||
|
@ -1581,7 +1581,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
{
|
||||
|
@ -1638,7 +1638,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
{
|
||||
|
@ -1683,7 +1683,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
{
|
||||
|
@ -1732,7 +1732,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
{
|
||||
|
@ -1777,7 +1777,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
]);
|
||||
|
@ -1813,7 +1813,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
]);
|
||||
|
@ -1856,7 +1856,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
{
|
||||
|
@ -1915,7 +1915,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
{
|
||||
|
@ -1969,7 +1969,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
{
|
||||
|
@ -2032,7 +2032,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
expect(execSnapshots).toMatchObject([
|
||||
{ cmd: 'install-tool golang 1.23.3' },
|
||||
{
|
||||
cmd: 'go get -d -t ./...',
|
||||
cmd: 'go get -t ./...',
|
||||
options: { cwd: '/tmp/github/some/repo' },
|
||||
},
|
||||
{
|
||||
|
@ -2112,7 +2112,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
' bash -l -c "' +
|
||||
'install-tool golang 1.23.3' +
|
||||
' && ' +
|
||||
'go get -d -t ./...' +
|
||||
'go get -t ./...' +
|
||||
' && ' +
|
||||
'go install github.com/marwan-at-work/mod/cmd/mod@latest' +
|
||||
' && ' +
|
||||
|
@ -2227,7 +2227,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
' bash -l -c "' +
|
||||
'install-tool golang 1.23.3' +
|
||||
' && ' +
|
||||
'go get -d -t ./...' +
|
||||
'go get -t ./...' +
|
||||
' && ' +
|
||||
'go install github.com/marwan-at-work/mod/cmd/mod@latest' +
|
||||
' && ' +
|
||||
|
@ -2265,7 +2265,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
).toBeNull();
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: "go get -d -t . foo .bar/... '&&' cat",
|
||||
cmd: "go get -t . foo .bar/... '&&' cat",
|
||||
options: {
|
||||
cwd: '/tmp/github/some/repo',
|
||||
},
|
||||
|
@ -2305,7 +2305,7 @@ describe('modules/manager/gomod/artifacts', () => {
|
|||
]);
|
||||
expect(execSnapshots).toMatchObject([
|
||||
{
|
||||
cmd: 'go get -d -t .',
|
||||
cmd: 'go get -t .',
|
||||
options: {
|
||||
cwd: '/tmp/github/some/repo',
|
||||
},
|
||||
|
|
|
@ -243,7 +243,7 @@ export async function updateArtifacts({
|
|||
}
|
||||
}
|
||||
|
||||
let args = `get -d -t ${goGetDirs ?? './...'}`;
|
||||
let args = `get -t ${goGetDirs ?? './...'}`;
|
||||
logger.trace({ cmd, args }, 'go get command included');
|
||||
execCommands.push(`${cmd} ${args}`);
|
||||
|
||||
|
|
Loading…
Reference in a new issue