Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$mol_build: git auto pull #652

Merged
merged 2 commits into from
Jan 14, 2024
Merged

$mol_build: git auto pull #652

merged 2 commits into from
Jan 14, 2024

Conversation

PavelZubkov
Copy link
Member

Простейший автопулл для репозиториев от которых зависит модуль.

Пример лога сборки:

$ node mol/build/-/node.js hyoo/sketch
done
        time \2023-11-22T17:17:10.837Z
        place \$mol_build.root('C:/Users/Nou Sagi/mam')
        duration \26ms
        message \Built
        path \hyoo/sketch/-/index.html

done
        time \2023-11-22T17:17:10.840Z
        place \$mol_build.root('C:/Users/Nou Sagi/mam')
        duration \1ms
        message \Built
        path \hyoo/sketch/-/test.html

come
        time \2023-11-22T17:17:10.842Z
        place \$mol_exec
        dir \
        message \Run
        command \git pull

fail
        time \2023-11-22T17:17:11.786Z
        place \$mol_build.root('C:/Users/Nou Sagi/mam').modEnsure()
        path \C:/Users/Nou Sagi/mam
        message \
                \error: The following untracked working tree files would be overwritten by merge:
                \       .editorconfig
                \       .gitattributes
                \       .gitignore
                \       .gitpod.yml
                \       .meta.tree
                \       .npmrc
                \       .vscode/extensions.json
                \       .vscode/launch.json
                \       .vscode/mol.code-snippets
                \       .vscode/settings.json
                \       LICENSE
                \       README.md
                \       _logo.png
                \       _logo.svg
                \       lang.lang.tree
                \       mam.jam.js
                \       mam.ts
                \       meta.lang.tree
                \       package.json
                \       sandbox.config.json
                \       tsconfig.json
                \       tsfmt.json
                \Please move or remove them before you merge.
                \Aborting
                \

come
        time \2023-11-22T17:17:11.789Z
        place \$mol_exec
        dir \hyoo
        message \Run
        command \git pull

come
        time \2023-11-22T17:17:12.915Z
        place \$mol_exec
        dir \hyoo\sketch
        message \Run
        command \git pull

come
        time \2023-11-22T17:17:13.724Z
        place \$mol_exec
        dir \mol
        message \Run
        command \git pull

come
        time \2023-11-22T17:17:14.771Z
        place \$mol_exec
        dir \hyoo\sync
        message \Run
        command \git pull

come
        time \2023-11-22T17:17:16.062Z
        place \$mol_exec
        dir \hyoo\sync
        message \Run
        command \echo echo

come
        time \2023-11-22T17:17:16.078Z
        place \$mol_exec
        dir \hyoo\crowd
        message \Run
        command \git pull

come
        time \2023-11-22T17:17:17.864Z
        place \$mol_exec
        dir \node
        message \Run
        command \git pull

come
        time \2023-11-22T17:17:18.880Z
        place \$mol_exec
        dir \mol\icon
        message \Run
        command \git pull

come
        time \2023-11-22T17:17:20.128Z
        place \$mol_exec
        dir \hyoo\lingua
        message \Run
        command \git pull

done
        time \2023-11-22T17:17:25.825Z
        place \$mol_build.root('C:/Users/Nou Sagi/mam')
        duration \14984ms
        message \Built
        path \hyoo/sketch/-/web.deps.json

done
        time \2023-11-22T17:17:25.827Z
        place \$mol_build.root('C:/Users/Nou Sagi/mam')
        duration \1ms
        message \Built
        path \hyoo/sketch/-/web.css

done
        time \2023-11-22T17:17:27.910Z
        place \$mol_build.root('C:/Users/Nou Sagi/mam')
        duration \2083ms
        message \Built
        path \hyoo/sketch/-/web.js

done
        time \2023-11-22T17:17:28.887Z
        place \$mol_build.root('C:/Users/Nou Sagi/mam')
        duration \976ms
        message \Built
        path \hyoo/sketch/-/web.test.js

done
        time \2023-11-22T17:17:28.891Z
        place \$mol_build.root('C:/Users/Nou Sagi/mam')
        duration \3ms
        message \Built
        path \hyoo/sketch/-/web.mjs

done
        time \2023-11-22T17:17:32.065Z
        place \$mol_build.root('C:/Users/Nou Sagi/mam')
        duration \3173ms
        message \Built
        path \hyoo/sketch/-/web.audit.js

for ( const sub of mod.sub() ) {
sub.reset()
}
return false
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

пока не сообразил, нужен ли reset() и return true или false

@nin-jin nin-jin merged commit 2c1c12b into master Jan 14, 2024
1 of 20 checks passed
@nin-jin nin-jin deleted the auto-pull branch January 14, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants