Skip to content

🐛 fix(fragments): skip a missing fragment directory - #56

Merged
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/missing-fragment-directory
Oct 30, 2026
Merged

gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/missing-fragment-directory

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

The tox-dev/github-workflows 6.2.2 release failed in fragments with [Errno 2] No such file or directory: PosixPath('changelog.d'). Git tracks no empty directories, so a repository whose pending changes all carried skip news has no changelog.d, and is_shallow_clone ran Git inside the missing directory.

fragments now explains that there is nothing to link and exits 0 when the directory is missing. tags and towncrier build already handle that case; I replayed them against a fresh github-workflows checkout, and with this fix the whole assemble sequence succeeds.

Git tracks no empty directories, so a checkout with no pending fragments
has no changelog.d, and fragments failed the release with ENOENT before
linking anything. The tox-dev/github-workflows 6.2.2 release stopped on it.
@gaborbernat gaborbernat added the bug Something isn't working label Oct 30, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 release-creator | 🛠️ Build #35524673 | 📁 Comparing f61750c against latest (528b122)

  🔍 Preview build  

1 file changed
± changelog.html

@gaborbernat
gaborbernat enabled auto-merge (squash) October 30, 2026 14:06
@gaborbernat
gaborbernat merged commit ab8761d into tox-dev:main Oct 30, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant