Firstyear / obs-service-cargo

OBS Source Service and utilities for Rust software packaging
Mozilla Public License 2.0
16 stars 9 forks source link

Cleanup vendor folder after compression #13

Closed Firstyear closed 3 years ago

Firstyear commented 3 years ago

When calling cargo_vendor, we leave a vendor directory inside of the source folder. During a typical source run the modules we have are:

obs_scm
compress
cargo_vendor

The issue is that when we run this service again, the previous copy of "vendor" remains in our checked out source, which means that we end up with vendor inside both the compressed source tar AND our vendor.tar.

This change cleans up the vendor folder after we complete compression to avoid this situation, making the output tars cleaner.

Fixes #12