-
Notifications
You must be signed in to change notification settings - Fork 31
WIP: Feature/self contained opm #89
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
Conversation
…pt-library/opm into feature/self-contained-opm
This reverts commit d552fd4.
|
Пересекается с #72. Это PR - первая реализация независимой app. Дальше опыт можно распространить на gitsync/vanessa-runner/etc |
|
Предвижу потенциальные проблемы со сборкой/установкой не-self-contained пакетов. Надо проверить. |
|
Да, есть конфликт в установке зависимостей. При установке gitsync пакет strings не скачивается из хаба, так как КэшУстановленныхПакетов находит его в opm/oscript_modules. Если добавить ограничение каталога, по которому строится КэшУстановленныхПакетов (процедура ПолучитьУстановленныеПакеты), то гитсинк поставится нормально, а вот self-contained opm начнет затягивать свои зависимости из интернета, т.к. при установщик перестает смотреть в lib.additional, в котором прописал oscript_modules |
… в локальном в зависимости от флага additional расположения пока выпадают
|
Конфликт режимов установки разрешен. |
|
@nixel2007 Поясни сценарии использования. |
| Процесс.Запустить(); | ||
| Процесс.ОжидатьЗавершения(); | ||
|
|
||
| Если Процесс.КодВозврата <> 0 Тогда |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А выхлоп будет спрятан или к тому же sdout подцепится?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EvilBeaver в тот же stdout. Это важно?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Важно чтобы совсем не пропадал, а то непонятно будет. Все ок
src/Классы/КомандаOpm_List.os
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Затрудняюсь сказать, что делает эта логика. Наверное она нужна
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Если обнаружены метаданные пакета (opm-metadata.xml), то выводим ещё и версию пакета
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
О, конструкторчики! )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А то! 👍
src/Классы/УстановкаПакета.os
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Предупреждение или фэйл?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По идее это систкмный загрузчик копируется в новый каталог. Если системного загрузчика нет, то здесь как раз будет предупреждение. Но в целом, если системного загрузчика нет, то это вообще странно и маловероятно (сам опм не запустится?)
src/Классы/УстановкаПакета.os
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вот этот метод не осознал. Перебираем создаваемые батники и в их каталогах создаем локальные конфиги?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Именно так. Каждый исполняемый файл - это энтрипоинт. А рядом с энтрипоинтом должен лежать конфиг, ведущий на оскрипт_модулес. Но ты спросил, и сейчас я подумал, что надо добавить условие, что устанавливаемое приложение имеет эти самые оскрипт_модулес, иначе эта процедура все сломает.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
проверил, файлы создаются только при установке через -l
|
@artbear при чем тут тестирование? |
|
@artbear а, понял о чем ты. Собрать, протестировать установку и работу других пакетов/приложений |
No description provided.