mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
install: disable yarn update check
This commit is contained in:
1 file changed
+7
-2
+7
-2
@@ -323,6 +323,7 @@ ${nixConfBase}`);
|
|||||||
exec('nix-channel --update', { stdio: 'inherit' });
|
exec('nix-channel --update', { stdio: 'inherit' });
|
||||||
},
|
},
|
||||||
'nix-env -iA nixpkgs.pm2 nixpkgs.yarn nixpkgs.esbuild nixpkgs.bash nixpkgs.unzip nixpkgs.zip nixpkgs.diffutils nixpkgs.patch',
|
'nix-env -iA nixpkgs.pm2 nixpkgs.yarn nixpkgs.esbuild nixpkgs.bash nixpkgs.unzip nixpkgs.zip nixpkgs.diffutils nixpkgs.patch',
|
||||||
|
'yarn config set disable-self-update-check true',
|
||||||
async () => {
|
async () => {
|
||||||
const rl = createInterface(process.stdin, process.stdout);
|
const rl = createInterface(process.stdin, process.stdout);
|
||||||
try {
|
try {
|
||||||
@@ -614,7 +615,9 @@ async function main() {
|
|||||||
let res = exec(op[0], { stdio: 'inherit' });
|
let res = exec(op[0], { stdio: 'inherit' });
|
||||||
while (res.code && op[1].ignore !== true) {
|
while (res.code && op[1].ignore !== true) {
|
||||||
if (op[1].retry && retry < 30) {
|
if (op[1].retry && retry < 30) {
|
||||||
log.warn('Retry... (%s)', op[0]);
|
log.warn('Retry in 3 secs... (%s)', op[0]);
|
||||||
|
// eslint-disable-next-line no-await-in-loop
|
||||||
|
await sleep(3000);
|
||||||
res = exec(op[0], { stdio: 'inherit' });
|
res = exec(op[0], { stdio: 'inherit' });
|
||||||
retry++;
|
retry++;
|
||||||
} else log.fatal('Error when running %s', op[0]);
|
} else log.fatal('Error when running %s', op[0]);
|
||||||
@@ -624,7 +627,9 @@ async function main() {
|
|||||||
let res = await op[0](op[1]);
|
let res = await op[0](op[1]);
|
||||||
while (res === 'retry') {
|
while (res === 'retry') {
|
||||||
if (retry < 30) {
|
if (retry < 30) {
|
||||||
log.warn('Retry...');
|
log.warn('Retry in 3 secs...');
|
||||||
|
// eslint-disable-next-line no-await-in-loop
|
||||||
|
await sleep(3000);
|
||||||
// eslint-disable-next-line no-await-in-loop
|
// eslint-disable-next-line no-await-in-loop
|
||||||
res = await op[0](op[1]);
|
res = await op[0](op[1]);
|
||||||
retry++;
|
retry++;
|
||||||
|
|||||||
Reference in new issue
Block a user