Skip to content

Conversation

@drogus
Copy link
Collaborator

@drogus drogus commented Nov 3, 2025

Description of Changes

We technically don't need to git ls-files when getting the CLI templates because when we compile the release builds we work with a clean git clone, thus it's unlikely any untracked files will be created in the templates directory.

API and ABI breaking changes

None

Expected complexity level and risk

1

Testing

  • I've manually checked that the init command still generates the templates properly

We technically don't need to `git ls-files` when getting the CLI
templates because when we compile the release builds we work with a
clean git clone, thus it's unlikely any untracked files will be created
in the templates directory.
@drogus drogus changed the title Remove the dependency on git-files from cli/build.rs Remove the dependency on git ls-files from cli/build.rs Nov 3, 2025
@bfops bfops added release-any To be landed in any release window no runtime change This change does not affect the final binaries labels Nov 10, 2025
@drogus drogus force-pushed the drogus/remove-git-ls-files-from-build-rs branch from 303a65e to 76ec0a1 Compare November 24, 2025 12:16
@drogus drogus added this pull request to the merge queue Nov 24, 2025
Merged via the queue into master with commit 53f692d Nov 24, 2025
23 of 24 checks passed
@drogus drogus deleted the drogus/remove-git-ls-files-from-build-rs branch November 24, 2025 16:55
bfops added a commit that referenced this pull request Nov 24, 2025
github-merge-queue bot pushed a commit that referenced this pull request Nov 24, 2025
… (#3741)

# Description of Changes

This reverts commit 53f692d (#3568)

That PR broke the build if any of the directories used as templates are
not clean. It spammed lots of errors like:
```
error: `C:\Users\boppy\clockwork\SpacetimeDB\crates\cli/.templates/parent_parent_sdks_csharp_examples~_quickstart-chat_client/obj~/Debug/net8.0/client.pdb` wasn't a utf-8 file
 --> C:\Users\boppy\clockwork\SpacetimeDB\crates\cli/.templates/parent_parent_sdks_csharp_examples~_quickstart-chat_client/obj~/Debug/net8.0/client.pdb:0:49
  |

error: `C:\Users\boppy\clockwork\SpacetimeDB\crates\cli/.templates/parent_parent_sdks_csharp_examples~_quickstart-chat_client/obj~/Debug/net8.0/ref/client.dll` wasn't a utf-8 file
 --> C:\Users\boppy\clockwork\SpacetimeDB\crates\cli/.templates/parent_parent_sdks_csharp_examples~_quickstart-chat_client/obj~/Debug/net8.0/ref/client.dll:0:3
  |

error: `C:\Users\boppy\clockwork\SpacetimeDB\crates\cli/.templates/parent_parent_sdks_csharp_examples~_quickstart-chat_client/obj~/Debug/net8.0/refint/client.dll` wasn't a utf-8 file
 --> C:\Users\boppy\clockwork\SpacetimeDB\crates\cli/.templates/parent_parent_sdks_csharp_examples~_quickstart-chat_client/obj~/Debug/net8.0/refint/client.dll:0:3
```

# API and ABI breaking changes

None.

# Expected complexity level and risk

1

# Testing

- [x] `cargo build` passes on my repo now, which it wasn't before this
commit

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no runtime change This change does not affect the final binaries release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants