Comment 3 for bug 1698068

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Another option (for some projects) might be to use the `prepare` script, something like so:

lxd:
  plugin: go
  source: https://github.com/lxc/lxd
  source-type: git
  source-tag: lxd-2.14
  prepare: |
    git cherry-pick 0ffe2b2ef14b1c6fc66df9f04f6c23a761183a0e
    git cherry-pick 679aafe1fd65fed20fa3aa85359e6b053cecf276
    # [...]

That will pull lxd-2.14, and before building, apply the requested cherry-picks. That won't REALLY work for go, though, since you probably need that done in the pull step before `go get` is called. However, we have been discussing adding pre/post scripts to each lifecycle step (including pull), which would add a nicer, generic solution to this.