mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-10 00:48:46 -04:00
5
.changeset/hot-kangaroos-matter.md
Normal file
5
.changeset/hot-kangaroos-matter.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Do not retry requests, when checking for new versions of pnpm.
|
||||
@@ -32,13 +32,10 @@ export default async function (config: Config) {
|
||||
...config,
|
||||
authConfig: config.rawConfig,
|
||||
retry: {
|
||||
factor: config.fetchRetryFactor,
|
||||
maxTimeout: config.fetchRetryMaxtimeout,
|
||||
minTimeout: config.fetchRetryMintimeout,
|
||||
retries: config.fetchRetries,
|
||||
retries: 0,
|
||||
},
|
||||
storeDir,
|
||||
timeout: config.fetchTimeout,
|
||||
timeout: 3000,
|
||||
})
|
||||
const resolution = await resolve({ alias: packageManager.name, pref: 'latest' }, {
|
||||
lockfileDir: config.lockfileDir ?? config.dir,
|
||||
|
||||
@@ -202,7 +202,8 @@ export default async function run (inputArgv: string[]) {
|
||||
// Don't check for updates
|
||||
// 1. on CI environments
|
||||
// 2. when in the middle of an actual update
|
||||
if (!isCI && !selfUpdate) {
|
||||
// 3. when the CLI is running in offline mode
|
||||
if (!isCI && !selfUpdate && !config.offline && !config.preferOffline) {
|
||||
checkForUpdates(config).catch(() => { /* Ignore */ })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user