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 added MAM_NO_PULL, back init existing not-git directory #736

Merged
merged 3 commits into from
Feb 8, 2025

Conversation

zerkalica
Copy link
Collaborator

No description provided.

@zerkalica zerkalica enabled auto-merge February 8, 2025 11:23
protected override init_existing(dir: string) {
// Если вручную склонить ревизию hyoo/mol перед запуском билда,
// то hyoo надо проинициалзировать в соответствии с meta.ree
const repo = this.repo(dir)
Copy link
Member

Choose a reason for hiding this comment

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

Я каждый раз спотыкаюсь. Что такое repo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

url + branch репозитория взятый из meta.tre

Copy link
Member

Choose a reason for hiding this comment

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

Из названия это не понятно.

@@ -68,8 +68,14 @@ namespace $ {
}
}

protected no_pull() {
Copy link
Member

Choose a reason for hiding this comment

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

Лучше использоваться позитивную логику вместо негативной, чтобы потом не ломать голову о двойное отрицание.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

переназвал pull_disable

Copy link
Member

Choose a reason for hiding this comment

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

enabled..

@ $mol_mem_key
ensure( path : string ) {
if (this.no_pull()) return false
Copy link
Member

Choose a reason for hiding this comment

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

Я правильно понимаю, что все включение этой опции отключит не только обновление, но и установку отсутствующих зависимостей?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

переделал, что б clone остался, если репы нет

@zerkalica zerkalica merged commit 94a83fa into master Feb 8, 2025
20 checks passed
@zerkalica zerkalica deleted the fix-build2 branch February 8, 2025 12:19
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