Skip to content

Commit b36cb97

Browse files
Packit BuildPaul Whalen
authored andcommitted
fix: create vendor tarball during propose_downstream
Add post-modifications action to create the vendor tarball and copy it to the downstream repository before Packit uploads to the lookaside cache. This ensures both Source0 and Source1 are available during propose_downstream. Follows the same pattern used by go-fdo-server and go-fdo-client. Signed-off-by: Paul Whalen <pwhalen@fedoraproject.org>
1 parent 2eeac08 commit b36cb97

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.packit.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ actions:
3636
- "sed -i '/^License:/a\\%global debug_package %{nil}' greenboot-rs.spec"
3737
- bash -c "git config user.name 'Packit Build' || true"
3838
- bash -c "git config user.email 'packit@fedoraproject.org' || true"
39+
post-modifications:
40+
- |
41+
bash -exc '
42+
cargo vendor vendor
43+
tar -cJf "greenboot-rs-${PACKIT_PROJECT_VERSION}-vendor-patched.tar.xz" vendor
44+
rm -rf vendor
45+
if [ -n "${PACKIT_DOWNSTREAM_REPO}" ]; then
46+
cp "greenboot-rs-${PACKIT_PROJECT_VERSION}-vendor-patched.tar.xz" "${PACKIT_DOWNSTREAM_REPO}/"
47+
fi
48+
'
3949
4050
jobs:
4151
- job: copr_build

0 commit comments

Comments
 (0)