Repository navigation
Remove accidentally committed stray test database (fixes Windows clones) - #277
Open
leo7martins wants to merge 1 commit into
Open
leo7martins wants to merge 1 commit into
leo7martins wants to merge 1 commit into
Conversation
Commit 78c07d3 ("Fix dbcli#245", via dbcli#255) swept local test artifacts into the tree: a SQLite database literally named with an absolute Windows path (the tests connect to that path, and on Linux/CI backslashes are legal filename characters, so the file existed locally and got picked up by git add -A), plus a .tox/.pkg/file.lock. The absolute-path filename makes git clone fail outright on Windows (error: invalid path; unable to checkout working tree) - see dbcli#276. Removing both stray files. No code changes: the test that connects to the path still passes (it creates the database on demand). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #276.
Description
Commit 78c07d3 ("Fix #245", merged via #255) accidentally swept local test artifacts into the tree alongside the real change:
C:\Users\litecli\litecli_test.db.tox/.pkg/file.lockThe test suite connects to that literal path (
tests/test_main.py); on Linux/CI backslashes are legal filename characters, so running the tests creates the file, and it got picked up (presumably withgit add -A):An absolute Windows path as a filename cannot exist on NTFS, so
git cloneof this repository fails outright on Windows (error: invalid path ...,fatal: unable to checkout working tree) — #276.This PR removes both stray files. No code changes:
tests/test_main.pypasses on this branch (16 passed) — the affected test creates the database on demand and does not rely on the tracked artifact.git clone --branch remove-stray-test-db https://github.com/leo7martins/litecli.gitcompletes successfully on Git-for-Windows (the same clone ofmainfails with the invalid-path error).Possible follow-up (left to maintainers, happy to send it separately): make that test avoid a path that materializes as a weird leftover file on POSIX, or add the artifact to
.gitignoreso agit add -Acan never re-commit it.Checklist
CHANGELOG.mdfile.Found during an AI-assisted contribution session (Mistral Vibe); I reviewed and verified the change, including the Windows clone reproduction before and after.