canonical / canonical/craft-application

Redesign project file resolver

Open
#583 1 comment 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

`_resolve_project_path()`

1. should find a project file in multiple locations.
2. not fail if a directory is actually a file

### Why it needs to get done

1. Applications have to hack around this (https://github.com/canonical/snapcraft/blob/5317dbebac1c953192ff38e4c6fddd294f979cb1/snapcraft/application.py#L154-L165)
2. craft-application raises an internal error (https://github.com/canonical/snapcraft/issues/5167)

Contributor guide

Open the contributing guide

Research direction

Start at `_resolve_project_path()` and read the linked snapcraft workaround in `application.py`, along with the referenced craft-application issue. Done means the resolver finds a project file in multiple locations and does not fail when a directory path is actually a file; the issue does not name a test file to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.