diff --git a/build/ensure/git/git.ts b/build/ensure/git/git.ts index ba138af00a..bda0eaae6f 100644 --- a/build/ensure/git/git.ts +++ b/build/ensure/git/git.ts @@ -83,6 +83,7 @@ namespace $ { const command = ['git', 'remote', 'add', '--track', branch, 'origin' , repo.url ] this.$.$mol_run.spawn( { command, dir, dirty: true } ) + // this.$.$mol_run.spawn( { command: [ 'git', 'pull', 'origin', branch ], dir, dirty: true } ) this.$.$mol_run.spawn( { command: [ 'git', 'checkout', branch ], dir, dirty: true } ) return null diff --git a/build/ensure/vcs/vcs.ts b/build/ensure/vcs/vcs.ts index 1a0a1ebad1..fc56777a9f 100644 --- a/build/ensure/vcs/vcs.ts +++ b/build/ensure/vcs/vcs.ts @@ -78,8 +78,8 @@ namespace $ { this.init(path) } this.pull( path ) - // mod.reset() - // for ( const sub of mod.sub() ) sub.reset() + mod.reset() + for ( const sub of mod.sub() ) sub.reset() return true } diff --git a/run/run.node.ts b/run/run.node.ts index faac04530d..f761937b99 100644 --- a/run/run.node.ts +++ b/run/run.node.ts @@ -38,7 +38,7 @@ namespace $ { static lock_run(cb: () => Result) { return this.lock.run(cb) } static spawn(options: $mol_run_options) { - const sync = ! Boolean($mol_wire_auto()) + const sync = ! this.$.$mol_env()['MOL_RUN_ASYNC'] || ! Boolean($mol_wire_auto()) const env = options.env ?? this.$.$mol_env() const cb = () => $mol_wire_sync(this).spawn_async( { ...options, sync, env } ) @@ -62,7 +62,7 @@ namespace $ { if (sync) { - this.$.$mol_log3_warn({ + this.$.$mol_log3_come({ hint: 'Run inside fiber', ...log_object })