Skip to content

Commit

Permalink
$mol_run, check env
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Nov 7, 2024
1 parent a574af5 commit 096181a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions build/ensure/git/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions build/ensure/vcs/vcs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions run/run.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace $ {
static lock_run<Result>(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 } )
Expand All @@ -62,7 +62,7 @@ namespace $ {

if (sync) {

this.$.$mol_log3_warn({
this.$.$mol_log3_come({
hint: 'Run inside fiber',
...log_object
})
Expand Down

0 comments on commit 096181a

Please sign in to comment.