Repository navigation
Write the _modified alignment beside the original when a parent folder contains its base name - #514
Merged
jtklein merged 2 commits intoNov 24, 2026
Conversation
…r contains its base name (#340) String.replace rewrote the first match of the base name, which could be a parent folder, so the write went to a folder that does not exist (ENOENT). Build the path from the directory and file name instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lint.yaml ran Vitest on Linux only, under the react-test alias. Path code behaves differently on Windows, so build.yaml now runs yarn test on its macOS/Linux/Windows matrix. yarn verify runs lint, the typecheck baseline and the tests in one command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jtklein-agents
force-pushed
the
340-write-modified-alignment-beside-original
branch
from
November 24, 2026 07:48
5561957 to
c6f0dee
Compare
3 tasks
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.
Summary
Loading an alignment that needs renamed taxa failed with
ENOENT … <name>_modified/<name>.faswhenever a parent folder contained the file's base name.String.replacerewrote the first match, which was the folder. This is the most-reported file error (upstream reports194, 199, 200, 233, 248, 250, 274, 293, 312, 359, 379).A second commit runs the unit tests in CI on macOS, Linux and Windows, and adds a
yarn verifyscript:Evidence
/tmp/abc/abc.faswith an illegal taxon name → written to/tmp/abc_modified/abc.fas(folder does not exist, ENOENT)After: written to
/tmp/abc/abc_modified.fas; same for/tmp/abc ML/abc.fas→/tmp/abc ML/abc_modified.fasyarn verify(lint, typecheck, tests): clean, 70 test files / 483 tests passed (macOS).Merge Danger
Door: two-way
Revert restores the old path logic and CI steps; no data or file format changes.
Blast Radius: small
Only alignments that need renaming get a new path, and only when the folder name contained the base name did that path change. The new CI step can fail the release job on Windows or macOS if a test assumes POSIX paths; those tests have not yet run there.
🤖 Generated with Claude Code