Commit 9c867ad5 authored by Cecylia Bocovich's avatar Cecylia Bocovich 💬 Committed by Pier Angelo Vendrame
Browse files

Bug 41753: Add pre_go_vendor and go_vendor_patch vars

Let projects define pre_go_vendor and go_vendor_patch variables for the
purpose of patching vendored dependencies.
parent 167fdd8f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ steps:
      mkdir -p /var/tmp/build
      tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.[% c('compress_tar') %]
      cd /var/tmp/build/[% project %]-[% c('version') %]
      [% IF c("var/pre_go_vendor"); GET c("var/pre_go_vendor"); END -%]
      go mod vendor
      [% c('tar', {
        tar_src => [ 'vendor' ],
@@ -69,6 +70,8 @@ steps:
      - name: go
        project: go
        pkg_type: build
      - filename: '[% c("var/go_vendor_patch") %]'
        enable: '[% c("var/pre_go_vendor") %]'

# buildconf contains build options that the user can change in rbm.local.conf
# When adding a new option to buildconf, a default value should be defined