#1396 Scratch build does not support rebuild strategy to not build all RPMs
Opened 4 years ago by hhorak. Modified 4 years ago

When I build module with scratch option, the strategy is always to build everything. I don't know for sure where to fix this, but what I'd like to achieve is that when I run fedpkg module-build --scratch <+strategy spec>, then this strategy (for example build only changed) should be respected.

Is the reason to always build all that it's not clear what is the previous build? (by any chance? that's the only reason I'm thinking about, why it might not be possible)


Scratch module builds do reuse components from previous module builds just like non-scratch module builds, the difference is that components from a scratch module build can't be reused, even from other scratch module builds. This is by design.

Are you seeing different behavior?

After some discussion during the Modularity grooming meeting, we'd like to implement the following:

  • Allow scratch module builds to reuse components from other scratch module builds with a special flag. The default behavior should remain.
  • Allow a scratch module build to specify another scratch module build to reuse components from with the reuse_components_from parameter.

Login to comment on this ticket.

Metadata