Skip to content

Commit fb7af81

Browse files
fix(nuget): Pass --timeout to dotnet nuget push (#901)
The nuget target ran `dotnet nuget push` without `--timeout`, so each upload was capped at the CLI default of 300 seconds. When nuget.org is slow, one upload crossing that limit fails the whole target and skips every target after it, even when the packages actually landed (as in sentry-dotnet 6.12.1). This passes `--timeout 1800` to every push. Fixes #900 <!-- junior-request-attribution:start --> via **Ricardo Oliveira**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC08M7S0TQ5U%3A1791878009.451309 --> -- [View Junior Session](https://junior-prod.sentry.dev/conversations/slack%3AC08M7S0TQ5U%3A1791878009.451309) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC08M7S0TQ5U%3A1791878009.451309/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Ricardo Oliveira <ricardo.oliveira@sentry.io>
1 parent 3ac19c0 commit fb7af81

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/targets/nuget.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ export class NugetTarget extends BaseTarget {
234234
'--skip-duplicate',
235235
'--source',
236236
this.nugetConfig.serverUrl,
237+
'--timeout',
238+
'1800',
237239
];
238240
return spawnProcess(NUGET_DOTNET_BIN, args, DOTNET_SPAWN_OPTIONS);
239241
}

0 commit comments

Comments
 (0)