Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Команда Build - Добавить встраивание `oscript_modules` в пакет

Open
#129 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
build-system, cli

Research direction

Start by locating the build command and its package assembly hook, then compare its behavior with the provided ПередСборкой procedure and the gitsync-plugins release example. Check how opm 0.14+ installs dependencies locally, ensure oscript_modules is included in the package, and verify that local dependencies are preferred before the internet.

Written by the indexing model from the issue text.

Description

Можно пересобрать пакет с зависимостями по примеру https://github.com/khorevaa/gitsync-plugins/releases там все зависимости упакованы вместе с пакетом в каталог oscript_modules и устанавливаются сначала из него потом уже интернет. Но это возможно столько на версиях opm 0.14+

@artbear Процедура сборки пакета

Процедура ПередСборкой(Знач РабочийКаталог) Экспорт

    УдалитьФайлы(ОбъединитьПути(РабочийКаталог, "oscript_modules"), "*.*");

    СистемнаяИнформация = Новый СистемнаяИнформация;
    ЭтоWindows = Найти(НРег(СистемнаяИнформация.ВерсияОС), "windows") > 0;
    Если ЭтоWindows Тогда
        ИмяУтилиты = "opm.bat";
    Иначе
        ИмяУтилиты = "opm";
    КонецЕсли;

    СтрокаЗапуска = СтрШаблон("%1 install -l", ИмяУтилиты);
    Процесс = СоздатьПроцесс(СтрокаЗапуска, РабочийКаталог);
    Процесс.Запустить();
    Процесс.ОжидатьЗавершения();

    Если Процесс.КодВозврата <> 0 Тогда
        ВызватьИсключение "Ошибка сборки пакета";
    КонецЕсли;

КонецПроцедуры

@artbear @nixel2007 Вообще эту функциональность надо запилить в команду build -) Дойдут руки сделаю
@khorevaa ну и включить в сборку, верно?
.ВключитьФайл("oscript_modules")

Источник https://gitter.im/EvilBeaver/oscript-library?at=5b616f2695988830b0919e88

@khorevaa @nixel2007 @EvilBeaver

Dominant language
1C Enterprise
Stars
85
Forks
35
Avg merge
1m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from oscript-library/opm

All issues in oscript-library/opm

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.