← Back to issue list

qmake plugin ignores source-subdir parameter?

View original Github issue

Metadata

Project
craft-parts
Number
#950
Type
issue
State
open
Author
LazyT
Labels
Created
2024-12-27 10:40:29+00:00
Updated
2025-05-26 10:25:43+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description Looks like the "source-subdir" is being ignored for the qmake plugin (snapcraft 8.5.1) here. It looks for the project file in the src dir, not the subdir. Setting the "qmake-project-file" to the file doesn't work either, only including the subdir path sources/project.pro works. Is this a bug or am I doing something wrong? Thanks! ### To Reproduce Try to build a minimal project. ### part yaml ```shell parts: test: plugin: qmake source: https://<some git repo> source-type: git source-subdir: sources qmake-major-version: 6 (qmake-project-file: project.pro ``` ### Relevant log output ```shell Without qmake-project-file: Cannot read /root/parts/test/src: file to open is a directory With qmake-project-file: Cannot find file: /root/parts/test/src/project.pro ```

Evaluation history

No evaluation history available.