tinymist/.github/workflows
Copilot 65ee92b1ac
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
tinymist::ci / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
fix: ensure full git history available in web and Alpine container builds (#1996)
The GitHub Action builds for Alpine containers (`alpine-{x64,arm64}`)
were producing warning messages that cluttered the build logs:

```
warning: tinymist-core@0.13.18: not within a suitable 'git' worktree!
warning: tinymist-core@0.13.18: VERGEN_GIT_DESCRIBE set to default
warning: tinymist-core@0.13.18: VERGEN_GIT_SHA set to default
```

These warnings occurred because the vergen crate was attempting to
access git repository information in containerized environments where
the full git history wasn't available due to shallow cloning.

**Root cause:** The Alpine workflow was using `actions/checkout@v4` with
default settings, which performs a shallow clone that doesn't include
the full git history that vergen needs for `git_describe` functionality.

**Solution:** Added `fetch-depth: 0` to the checkout step in the Alpine
workflow to ensure the full git history is available during builds. Git
is already properly installed in the Alpine environment via `apk add
--no-cache git`.

This approach maintains consistent behavior across all build
environments while eliminating the warnings in Alpine container builds.
The `tinymist --version` command continues to show proper git
information when available.

Fixes #1983.

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com>
Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-08-06 10:58:16 +08:00
..
announce.yml fix: properly handle v-prefix in release tag to announce (#1971) 2025-08-03 10:52:15 +08:00
auto-tag.yml feat: maintain workflows for nightly releases (#1986) 2025-08-05 10:27:44 +08:00
build-vsc-assets.yml test: ensure compile output works correctly (#1942) 2025-07-30 23:25:59 +08:00
build-vscode-main.yml build(ci): call VS Code CI tasks in release.yml workflow (#1920) 2025-07-29 16:21:34 +08:00
build-vscode-others.yml fix: ensure full git history available in web and Alpine container builds (#1996) 2025-08-06 10:58:16 +08:00
build-vscode.yml fix: remove explicit requirement of secrets (#1952) 2025-07-31 20:13:57 +08:00
ci-check-e2e.yml feat: run announce workflow in ci (#1938) 2025-07-29 17:15:51 +08:00
ci.yml revert: "fix(ci): detect create intead of push (#1962)" (#1994) 2025-08-06 00:56:53 +08:00
detect-pr-tag.yml fix: several fixes to auto release (#1959) 2025-08-01 16:08:08 +08:00
gh-pages.yml feat: use shiroa v0.3.1-rc3 2025-06-30 15:11:07 +08:00
lint-pr-title.yml feat(ci): vscode extensions use binaries built by cargo-dist (#1560) 2025-03-27 04:20:58 +08:00
release-asset-crate.yml feat(ci): setup and cache minimal toolchain (#1683) 2025-04-30 17:45:13 +08:00
release-crates.yml dev: fix meta and rename preview crates for publish crates (#1804) 2025-06-09 09:40:05 +08:00
release-nightly.yml feat: maintain workflows for nightly releases (#1986) 2025-08-05 10:27:44 +08:00
release.yml build(ci): call VS Code CI tasks in release.yml workflow (#1920) 2025-07-29 16:21:34 +08:00