diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b5661432114..5b395313860 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,7 +21,9 @@ jobs: timeout: 120 runner: linux.2xlarge docker-image: pytorch-linux-jammy-cuda11.8-cudnn8-py3.9-linter - fetch-depth: 1 + # NB: A shallow checkout won't work here because calculate-docker-image requires a full checkout + # to run git rev-parse HEAD~:.ci/docker when a new image is needed + fetch-depth: 0 submodules: true ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} script: | @@ -35,7 +37,9 @@ jobs: timeout: 120 runner: linux.2xlarge docker-image: pytorch-linux-jammy-cuda11.8-cudnn8-py3.9-linter - fetch-depth: 1 + # NB: A shallow checkout won't work here because calculate-docker-image requires a full checkout + # to run git rev-parse HEAD~:.ci/docker when a new image is needed + fetch-depth: 0 submodules: true ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} script: |