summaryrefslogtreecommitdiffstats
path: root/ci/azure-patch-crates.yml
blob: 7bf96e60220c08991ff758d57f8ba659ecca4c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
steps:
  - script: |
      set -e

      # Remove any existing patch statements
      mv Cargo.toml Cargo.toml.bck
      sed -n '/\[patch.crates-io\]/q;p' Cargo.toml.bck > Cargo.toml

      # Patch all crates
      cat ci/patch.toml >> Cargo.toml

      # Print `Cargo.toml` for debugging
      echo "~~~~ Cargo.toml ~~~~"
      cat Cargo.toml
      echo "~~~~~~~~~~~~~~~~~~~~"
    displayName: Patch Cargo.toml