Skip to content

Fix migration not registering species after pip upgrade#6

Merged
Loyale merged 1 commit intomasterfrom
claude/add-genome-reference-tool-t3h7n
Apr 8, 2026
Merged

Fix migration not registering species after pip upgrade#6
Loyale merged 1 commit intomasterfrom
claude/add-genome-reference-tool-t3h7n

Conversation

@Loyale
Copy link
Copy Markdown
Contributor

@Loyale Loyale commented Apr 8, 2026

Summary

  • Fixes a bug where pip install -U replaced the package HCRconfig.yaml with a fresh species: {}, causing migration to copy index files but not register species entries
  • Index directories found in the old package location are now auto-registered as species using the directory name as both the species key and index prefix
  • Version bump: 0.3.1 → 0.3.2

Test plan

  • All 40 tests pass (1 new test covering the exact bug scenario)
  • Upgrade from 0.3.0 via pip install -U and verify listReferences shows auto-registered species
  • Verify normal migration (with intact old config) still works correctly

https://claude.ai/code/session_01L9BrYriTeA72fsqqTvgdxy

After `pip install -U`, pip replaces the package HCRconfig.yaml with a
fresh copy (species: {}), so the migration found and copied index files
but had no species entries to migrate. Now, when index directories are
migrated, they are auto-registered as species entries using the directory
name as both the species key and index prefix.

Bump version: 0.3.1 -> 0.3.2

https://claude.ai/code/session_01L9BrYriTeA72fsqqTvgdxy
@Loyale Loyale merged commit 74e47f9 into master Apr 8, 2026
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.

2 participants