Skip to content

Document reproducibility and use of git - #35

Merged
leighmcculloch merged 5 commits into
mainfrom
comment-about-git
May 27, 2026
Merged

Document reproducibility and use of git#35
leighmcculloch merged 5 commits into
mainfrom
comment-about-git

Conversation

@leighmcculloch

Copy link
Copy Markdown
Member

What

Expand the crate-level docs with sections covering builds without version info, shallow clone support, reproducible-build expectations around clean working trees, the stripping of path-redirecting GIT_* env vars, and the GIT_TERMINAL_PROMPT=0 behavior.

Why

Surface behaviors that previously required reading the source: when GIT_REVISION stays unset, why CI environments setting GIT_DIR/GIT_WORK_TREE no longer leak into recorded revisions, and how in-place build steps can produce a spurious -dirty suffix.

@leighmcculloch
leighmcculloch marked this pull request as ready for review May 26, 2026 05:38
Copilot AI review requested due to automatic review settings May 26, 2026 05:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Expands the crate-level documentation in src/lib.rs to better explain how crate-git-revision behaves across different build environments (published crates vs. local git checkouts), with emphasis on reproducibility and CI safety.

Changes:

  • Document when GIT_REVISION is intentionally left unset (no .cargo_vcs_info.json and no usable git).
  • Clarify git-related expectations/behaviors (shallow clones, clean working tree for reproducibility).
  • Document sanitization of path-redirecting GIT_* env vars and the use of GIT_TERMINAL_PROMPT=0 to avoid hangs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mootz12 mootz12 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG2M

Comment thread src/lib.rs Outdated
@leighmcculloch
leighmcculloch enabled auto-merge (squash) May 27, 2026 03:48
@leighmcculloch
leighmcculloch merged commit 8c69d77 into main May 27, 2026
11 checks passed
@leighmcculloch
leighmcculloch deleted the comment-about-git branch May 27, 2026 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants