clockworklabs / clockworklabs/SpacetimeDB

Remove git dependency in CLI build.rs

Open
#3,742 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #3752 by @bfops — closed without merging
Dominant language
Rust
Stars
25.2k
Forks
1.1k
Avg merge
2d 7h
Merged PRs (30d)
46

Description

From @gefjon:

I would also like to know if we see any alternative path to reducing or removing our usage of git in build scripts, given the problems it's caused both in Git builds and among our users.

One option may be to use git2 as a library instead of an executable.

Another option would be to have a statically generated index of the template files. This could be done in a pre-commit hook, or generated via a command and checked in CI (like our CLI docs, for example).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CLI build.rs and trace where the git executable is invoked for template files. Compare the issue's mentioned alternatives, git2 or a statically generated index, and check any existing CI or pre-commit generation commands. Done means the CLI build no longer depends on an external git executable and the chosen template-file source is covered by the repository workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, rust
Domain
build-system, cli
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.