fix(nuget): disable msbuild node reuse (#19095)

This commit is contained in:
Michael Kriese 2022-11-25 10:54:51 +01:00 committed by GitHub
parent 7603bebd03
commit 3c49502ced
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -91,6 +91,7 @@ describe('modules/manager/nuget/artifacts', () => {
env: {
NUGET_PACKAGES:
'/tmp/renovate/cache/__renovate-private-cache/nuget/packages',
MSBUILDDISABLENODEREUSE: '1',
},
},
},
@ -131,6 +132,7 @@ describe('modules/manager/nuget/artifacts', () => {
env: {
NUGET_PACKAGES:
'/tmp/renovate/cache/__renovate-private-cache/nuget/packages',
MSBUILDDISABLENODEREUSE: '1',
},
},
},
@ -216,6 +218,7 @@ describe('modules/manager/nuget/artifacts', () => {
env: {
NUGET_PACKAGES:
'/tmp/renovate/cache/__renovate-private-cache/nuget/packages',
MSBUILDDISABLENODEREUSE: '1',
},
},
},
@ -262,6 +265,7 @@ describe('modules/manager/nuget/artifacts', () => {
'-v "/tmp/github/some/repo":"/tmp/github/some/repo" ' +
'-v "/tmp/renovate/cache":"/tmp/renovate/cache" ' +
'-e NUGET_PACKAGES ' +
'-e MSBUILDDISABLENODEREUSE ' +
'-e BUILDPACK_CACHE_DIR ' +
'-e CONTAINERBASE_CACHE_DIR ' +
'-w "/tmp/github/some/repo" ' +
@ -277,6 +281,7 @@ describe('modules/manager/nuget/artifacts', () => {
CONTAINERBASE_CACHE_DIR: '/tmp/renovate/cache/containerbase',
NUGET_PACKAGES:
'/tmp/renovate/cache/__renovate-private-cache/nuget/packages',
MSBUILDDISABLENODEREUSE: '1',
},
},
},
@ -320,6 +325,7 @@ describe('modules/manager/nuget/artifacts', () => {
CONTAINERBASE_CACHE_DIR: '/tmp/renovate/cache/containerbase',
NUGET_PACKAGES:
'/tmp/renovate/cache/__renovate-private-cache/nuget/packages',
MSBUILDDISABLENODEREUSE: '1',
},
},
},
@ -332,6 +338,7 @@ describe('modules/manager/nuget/artifacts', () => {
CONTAINERBASE_CACHE_DIR: '/tmp/renovate/cache/containerbase',
NUGET_PACKAGES:
'/tmp/renovate/cache/__renovate-private-cache/nuget/packages',
MSBUILDDISABLENODEREUSE: '1',
},
},
},
@ -373,6 +380,7 @@ describe('modules/manager/nuget/artifacts', () => {
env: {
NUGET_PACKAGES:
'/tmp/renovate/cache/__renovate-private-cache/nuget/packages',
MSBUILDDISABLENODEREUSE: '1',
},
},
},

View file

@ -71,7 +71,10 @@ async function runDotnetRestore(
docker: {
image: 'sidecar',
},
extraEnv: { NUGET_PACKAGES: join(nugetCacheDir, 'packages') },
extraEnv: {
NUGET_PACKAGES: join(nugetCacheDir, 'packages'),
MSBUILDDISABLENODEREUSE: '1',
},
toolConstraints: [
{ toolName: 'dotnet', constraint: config.constraints?.dotnet },
],