Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Revert "ci: Restore mtime of source files to the git log time" (#48874)
Piotr Osiewicz95890a987e65
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 6d75b01ddff..7817289f84d 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -17,9 +17,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |mkdir -p ./../.cargo@@ -52,9 +49,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |mkdir -p ./../.cargo@@ -101,9 +95,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |New-Item -ItemType Directory -Path "./../.cargo" -Force@@ -133,9 +124,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |mkdir -p ./../.cargo@@ -156,9 +144,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |mkdir -p ./../.cargo@@ -185,9 +170,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |New-Item -ItemType Directory -Path "./../.cargo" -Force@@ -258,9 +240,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_sentryuses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454bwith:@@ -301,9 +280,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_sentryuses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454bwith:@@ -349,9 +325,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -397,9 +370,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -449,9 +419,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_sentryuses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454bwith:@@ -497,9 +464,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_sentryuses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454bwith:diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.ymlindex 126540e2173..942f39c4526 100644--- a/.github/workflows/release_nightly.yml+++ b/.github/workflows/release_nightly.yml@@ -33,9 +33,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |New-Item -ItemType Directory -Path "./../.cargo" -Force@@ -65,9 +62,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |New-Item -ItemType Directory -Path "./../.cargo" -Force@@ -92,9 +86,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: run_bundling::set_release_channel_to_nightlyrun: |set -eu@@ -141,9 +132,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: run_bundling::set_release_channel_to_nightlyrun: |set -eu@@ -195,9 +183,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: run_bundling::set_release_channel_to_nightlyrun: |set -eu@@ -249,9 +234,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: run_bundling::set_release_channel_to_nightlyrun: |set -eu@@ -307,9 +289,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: run_bundling::set_release_channel_to_nightlyrun: |$ErrorActionPreference = "Stop"@@ -363,9 +342,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: run_bundling::set_release_channel_to_nightlyrun: |$ErrorActionPreference = "Stop"diff --git a/.github/workflows/run_bundling.yml b/.github/workflows/run_bundling.ymlindex 02be483e045..7f0ad57b51f 100644--- a/.github/workflows/run_bundling.yml+++ b/.github/workflows/run_bundling.yml@@ -24,9 +24,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_sentryuses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454bwith:@@ -66,9 +63,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_sentryuses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454bwith:@@ -113,9 +107,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -160,9 +151,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -211,9 +199,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_sentryuses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454bwith:@@ -258,9 +243,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_sentryuses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454bwith:diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex 99834c0db63..dd0eee2efe0 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -151,9 +151,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |New-Item -ItemType Directory -Path "./../.cargo" -Force@@ -173,9 +170,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |mkdir -p ./../.cargo@@ -204,9 +198,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |mkdir -p ./../.cargo@@ -229,9 +220,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |New-Item -ItemType Directory -Path "./../.cargo" -Force@@ -263,9 +251,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |mkdir -p ./../.cargo@@ -314,9 +299,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::setup_cargo_configrun: |mkdir -p ./../.cargo@@ -351,9 +333,6 @@ jobs:uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- fetch-depth: 0- - name: steps::restore_mtime- uses: zed-industries/git-restore-mtime-action@72cefcf20b50bf4fcd74ea8a0d2927b0680e2114- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:diff --git a/tooling/xtask/src/tasks/workflows/run_bundling.rs b/tooling/xtask/src/tasks/workflows/run_bundling.rsindex 17b1f021b8e..bdeec783476 100644--- a/tooling/xtask/src/tasks/workflows/run_bundling.rs+++ b/tooling/xtask/src/tasks/workflows/run_bundling.rs@@ -73,8 +73,7 @@ pub(crate) fn bundle_mac(job: bundle_job(deps).runs_on(runners::MAC_DEFAULT).envs(bundle_envs(platform))- .add_step(steps::checkout_repo().add_with(("fetch-depth", 0)))- .add_step(steps::restore_mtime())+ .add_step(steps::checkout_repo()).when_some(release_channel, |job, release_channel| {job.add_step(set_release_channel(platform, release_channel))})@@ -125,8 +124,7 @@ pub(crate) fn bundle_linux(job: bundle_job(deps).runs_on(arch.linux_bundler()).envs(bundle_envs(platform))- .add_step(steps::checkout_repo().add_with(("fetch-depth", 0)))- .add_step(steps::restore_mtime())+ .add_step(steps::checkout_repo()).when_some(release_channel, |job, release_channel| {job.add_step(set_release_channel(platform, release_channel))})@@ -166,8 +164,7 @@ pub(crate) fn bundle_windows(job: bundle_job(deps).runs_on(runners::WINDOWS_DEFAULT).envs(bundle_envs(platform))- .add_step(steps::checkout_repo().add_with(("fetch-depth", 0)))- .add_step(steps::restore_mtime())+ .add_step(steps::checkout_repo()).when_some(release_channel, |job, release_channel| {job.add_step(set_release_channel(platform, release_channel))})diff --git a/tooling/xtask/src/tasks/workflows/run_tests.rs b/tooling/xtask/src/tasks/workflows/run_tests.rsindex d0f4ea2e0df..d474f4c0875 100644--- a/tooling/xtask/src/tasks/workflows/run_tests.rs+++ b/tooling/xtask/src/tasks/workflows/run_tests.rs@@ -384,8 +384,7 @@ pub(crate) fn clippy(platform: Platform) -> NamedJob {name: format!("clippy_{platform}"),job: release_job(&[]).runs_on(runner)- .add_step(steps::checkout_repo().add_with(("fetch-depth", 0)))- .add_step(steps::restore_mtime())+ .add_step(steps::checkout_repo()).add_step(steps::setup_cargo_config(platform)).when(platform == Platform::Linux || platform == Platform::Mac,@@ -431,8 +430,7 @@ fn run_platform_tests_impl(platform: Platform, filter_packages: bool) -> NamedJo),)})- .add_step(steps::checkout_repo().add_with(("fetch-depth", 0)))- .add_step(steps::restore_mtime())+ .add_step(steps::checkout_repo()).add_step(steps::setup_cargo_config(platform)).when(platform == Platform::Linux || platform == Platform::Mac,@@ -515,8 +513,7 @@ fn doctests() -> NamedJob {named::job(release_job(&[]).runs_on(runners::LINUX_DEFAULT)- .add_step(steps::checkout_repo().add_with(("fetch-depth", 0)))- .add_step(steps::restore_mtime())+ .add_step(steps::checkout_repo()).add_step(steps::cache_rust_dependencies_namespace()).map(steps::install_linux_dependencies).add_step(steps::setup_cargo_config(Platform::Linux))diff --git a/tooling/xtask/src/tasks/workflows/steps.rs b/tooling/xtask/src/tasks/workflows/steps.rsindex 27244d816ab..c78a762b9f0 100644--- a/tooling/xtask/src/tasks/workflows/steps.rs+++ b/tooling/xtask/src/tasks/workflows/steps.rs@@ -47,14 +47,6 @@ impl From<Nextest> for Step<Run> {}}-pub fn restore_mtime() -> Step<Use> {- named::uses(- "zed-industries",- "git-restore-mtime-action",- "72cefcf20b50bf4fcd74ea8a0d2927b0680e2114",- )-}-pub fn checkout_repo() -> Step<Use> {named::uses("actions",