oscript-library / oscript-library/opm

Не удаляются файлы от старых версий пакета при установке/обновлении

Open
#222 0 comments 1 reaction 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

Если в новой версии пакета удалены файлы, то при установке/обновлении пакета opm i/u ххх они остаются в папке пакета.

Пример проблемы:

  • в v8unpaсk 1.0.6 удален файл lib.config, но он остается в папке и приводит к ошибке загрузки библиотеки в onescript 2.0
PS C:\Users\nadulich> vrunner --help
{Модуль C:\Users\nadulich\AppData\Local\ovm\current\lib\vanessa-runner\oscript_modules\v8unpack\package-loader.os / Ошибка в строке: 6 / Внешнее исключение (System.Exception): Error loading assemblies:
Inner exception [0]System.TypeLoadException: Could not load type 'ScriptEngine.Machine.Contexts.ICollectionContext' from assembly 'ScriptEngine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.
Inner exception [1]System.TypeLoadException: Could not load type 'ScriptEngine.Machine.IValue' from assembly 'ScriptEngine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.
}

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 locating the implementation behind the opm i/u install and update commands, then reproduce the case with v8unpack, where lib.config was removed in 1.0.6. Trace how the package directory is replaced or synchronized; done means files deleted from a newer package no longer remain after installation or update.

Written by the indexing model from the issue text.

Assessment

Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.