Commit d7c21044 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

Bug 41766: Use Gzip for all platforms for Go vendoring.

If we use different compression method, we need to version different
tarball hashes, one for each method.
parent 9d1d9a64
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ targets:
    tag_gpg_id: 0
  macos:
    var:
      go_vendor_sha256sum: 6a054acb7793becdbcb9a08ce7781f3d331f15e85242b399fcef96fb89941f4d
      pre_go_vendor: |
        if [ -e "/var/tmp/build/[% project %]-[% c('version') %]/go-1.22.patch" ]; then
          patch -p1 < "/var/tmp/build/[% project %]-[% c('version') %]/go-1.22.patch"
+3 −0
Original line number Diff line number Diff line
@@ -49,6 +49,9 @@ steps:

  go_vendor:
    filename: '[% project %]-vendor-[% c("version") %]-[% c("var/build_id") %].tar.[% c("compress_tar") %]'
    # Use gzip for all platforms, so that they all have the same hash, at least
    # if they do not have a patch step.
    compress_tar: gz
    output_dir: "out/[% project %]/go_vendor"
    go_vendor: |
      #!/bin/bash