diff --git a/.github/workflows/check-clean-branch.sh b/.github/workflows/check-clean-branch.sh index 1eec74803aee..9b2f0d349295 100755 --- a/.github/workflows/check-clean-branch.sh +++ b/.github/workflows/check-clean-branch.sh @@ -1,9 +1,9 @@ -#!/bin/bash -# Exits if any uncommitted changes are found. +#!/usr/bin/env bash -set -o errexit -set -o nounset -set -o pipefail +set -euo pipefail +git add --all git update-index --really-refresh >> /dev/null + +# Exits if any uncommitted changes are found. git diff-index --quiet HEAD diff --git a/scripts/mocks.mockgen.source.txt b/scripts/mocks.mockgen.source.txt index f9dd3b517730..93f4c2fb5127 100644 --- a/scripts/mocks.mockgen.source.txt +++ b/scripts/mocks.mockgen.source.txt @@ -12,4 +12,3 @@ vms/platformvm/state/state.go=Chain=MockState=vms/platformvm/state/mock_state.go vms/platformvm/state/state.go=State=MockChain=vms/platformvm/state/mock_chain.go vms/platformvm/txs/unsigned_tx.go==UnsignedTx=vms/platformvm/txs/txsmock/unsigned_tx.go vms/proposervm/block.go=Block=MockPostForkBlock=vms/proposervm/mock_post_fork_block.go -x/merkledb/db.go=ChangeProofer,RangeProofer,Clearer,Prefetcher=MockMerkleDB=x/merkledb/mock_db.go