← Back to issue list

Using `source-subdir` results in `No such file or directory`

View original Github issue

Metadata

Project
craft-parts
Number
#427
Type
issue
State
open
Author
sed-i
Labels
Created
2023-04-28 08:23:09+00:00
Updated
2025-03-11 14:28:44+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

I am using rockcraft with the python plugin ([PR](https://github.com/canonical/kubeflow-rocks/pull/2)). This works: ```yaml source: https://github.com/SeldonIO/seldon-core # ... override-build: | craftctl default install -D -m755 servers/xgboostserver/xgboostserver/XGBoostServer.py ${CRAFT_PART_INSTALL}/opt/XGBoostServer.py ``` But this doesn't: ```yaml source: https://github.com/SeldonIO/seldon-core source-subdir: servers/xgboostserver # ... override-build: | craftctl default install -D -m755 xgboostserver/XGBoostServer.py ${CRAFT_PART_INSTALL}/opt/XGBoostServer.py ``` ``` 2023-04-27 05:56:12.564 :: 2023-04-27 09:56:08.894 :: + install -D -m755 xgboostserver/XGBoostServer.py /root/parts/xgboostserver/install/opt/XGBoostServer.py 2023-04-27 05:56:12.564 :: 2023-04-27 09:56:08.895 :: install: cannot stat 'xgboostserver/XGBoostServer.py': No such file or directory 2023-04-27 05:56:12.564 :: 2023-04-27 09:56:09.013 'override-build' in part 'xgboostserver' failed with code 1. ``` @tigarmo suggested this may be from a bad interaction between `source-subdir` and `override-build` ([code](https://github.com/canonical/craft-parts/blob/main/craft_parts/executor/part_handler.py#L312)).

Evaluation history

No evaluation history available.