Skip to content

Support for naming created virtual packages #8

@MS-githubaccnt

Description

@MS-githubaccnt

Currently, dependency manager installs and removes dependencies by naming the virtual package based on the project directory location.

Proposed Feature:

Add support for naming virtual package created.

virt-pack myproject -- make

This would create the virtual package named myproject.
Similarly, removal could be scoped by name.

virt-pack --remove myproject

Expected Behavior:

If a name is provided, both installation and removal should be associated with that name.
If no name is provided, the behavior should remain exactly the same as current .
Users should be able to list all named virtual packages.
Ensure handling for cases where there is a pre-existing package with same name.
Proper handling for trying to remove a package which doesn't exist or trying to use characters that can't be part of a package name.

Benefits:

Adds flexibility while keeping backward compatibility.

Notes:

The functionality of virt-pack -- build_command and virt-pack --remove must remain unchanged when no name is supplied, to ensure compatibility with existing workflows.
Make sure to test using the directories in the code-base.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions