Skip to content

[WIP] Avoid sharing shallow SRP references#11921

Draft
ulysses4ever wants to merge 4 commits into
haskell:masterfrom
ulysses4ever:fix-srp-shallow-checkouts
Draft

[WIP] Avoid sharing shallow SRP references#11921
ulysses4ever wants to merge 4 commits into
haskell:masterfrom
ulysses4ever:fix-srp-shallow-checkouts

Conversation

@ulysses4ever

@ulysses4ever ulysses4ever commented May 31, 2026

Copy link
Copy Markdown
Collaborator

i am looking into how to design a test

Separate git source-repository-package reference peers by branch/tag so a shallow checkout is never reused as a reference for a different target ref.

Please read Github PR Conventions and then fill in one of these two templates.


Template Α: This PR modifies behaviour or interface

Include the following checklist in your PR:

Separate git source-repository-package reference peers by branch/tag so a shallow checkout is never reused as a reference for a different target ref.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ulysses4ever and others added 3 commits May 31, 2026 22:31
The test was using 'base >=4.14 && <5' which excluded GHC 8.8.4
that ships with base-4.13. Since the test doesn't require any
specific base features, we can just use 'base' without version
constraints.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The test now uses actual files in upstream-repo/ and dummy-app/
directories, making it much easier to read and understand. The test
copies these template files into the git repo during setup.

Benefits:
- Physical files are easier to edit and review
- Test code is shorter and clearer
- File structure is visible in the repository

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Rename upstream-repo/ to repo-template/ for clarity
- Fix issue reference to point to actual PR comment
- Add comments explaining why we need copyFileToDir and writeSourceFile
- Clarify that cabal.project must be generated dynamically for commit hashes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant