oscript-library / oscript-library/opm

Кэш установленных модулей.

Open
#42 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Проблема:
Мне для проверки работы сделанного PR понадобилась свежая библиотека 1testrunner.
Чтобы ее установить только локально - надо удалить из глобальной папки, при этом переключение на другой проект приводит к обратной операции. (или аналогичной)

Посмотрел код и сделал вывод: кэш установленных библиотек работает только для "глобально" установленных. Что не очень корректно.

Как следствие, вызов команды opm install -l , в папке проекта, каждый раз устанавливает одни и те же библиотеки - локально, хотя они уже там есть.

Предлагаю переделать(доделать) флаг -g, а при вызове opm install -l , в папке проекта, устанавливать зависимости по умолчанию в локальную папку.

Изменить(доделать) логику поиска и подбора закэшированных библиотек.(думаю вопрос к движку) По следующим приоритетам:

  1. Поиск в локальной папке
  2. Поиск в глобальной папке.

Соответсвенно и загружать в работу их в том же порядке, сначала локальные библиотеки, потом глобальные. (и не грузить глобальную библиотеку, если загружена локальная той же версии)

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by tracing the opm install -l and -g command paths, then inspect the cache lookup and library-loading logic mentioned in the issue. The completed work should install project dependencies locally by default, search local before global caches, and avoid loading a global library when the same local version is available.

Written by the indexing model from the issue text.

Assessment

Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.