← Back to issue list

Cannot build multiple ROCKs from the same repo with local source

View original Github issue

Metadata

Project
rockcraft
Number
#617
Type
issue
State
open
Author
alnvdl-work
Labels
Created
2024-06-25 19:23:31+00:00
Updated
2024-06-26 11:44:44+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description Before (v1.4.0), I had a single `rockcraft.yaml` with two parts (one for each server binary written in Golang that I need to pack), and I could call `rockcraft pack my-part-name` to get different ROCKs. I see that option was removed now in `v1.5.2`. But I still can't pass alternative `rockcraft.yaml` files to `rockcraft pack`: it always picks the one from the current working dir. Moving the `rockcraft.yaml` to a subdir is not an option, because I need the entire root folder to be sent as context to compile both sub-projects. BTW, I use the following source: ``` source-type: local source: . ``` This is a common pattern in Golang applications: have the same repository from which many different binaries can be built. This was previously discussed here, without a conclusion: https://matrix.to/#/!NPPCseDHKRvSBMUEXN:ubuntu.com/$F8APWD_OPK64KsECe4MNFQbX1ObhES2aMFKrMN6BRpc?via=ubuntu.com&via=matrix.org Am I doing something wrong, or is this a real limitation? For now, I guess I will work around this with symbolic links and scripts. ### To Reproduce N/A ### Environment rockcraft v1.5.2 on Ubuntu 22.04. ### rockcraft.yaml N/A ### Relevant log output N/A

Evaluation history

No evaluation history available.