canonical / canonical/craft-application

Refactor to return packaged resource names

Open
#741 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14
Forks
29
Avg merge
2d 3h
Merged PRs (30d)
12

Description

### What needs to get done

The `pack` command in the package service currently returns a list of packaged artifacts, but In order to generate environment variables for resource files it should also return the resource names (or maybe fill a map passed as an optional argument). Refactor pack to obtain this information, and after that the `resource_map` property can be removed.

### Why it needs to get done

The testing setup requires environment variables with resource names pointing to resource files.

Contributor guide

Open the contributing guide

Research direction

Start with the package service's `pack` command and trace how it currently returns packaged artifacts and uses the `resource_map` property. Decide how resource names should be returned, remove the obsolete property, and verify that the testing setup can generate environment variables pointing to resource files.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Refactor
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.