Skip to content

fix: remove loopsolver/version.py resurrected by release-please - #315

Merged
lachlangrose merged 1 commit into
masterfrom
fix-loopsolver-version-corruption
Aug 14, 2026
Merged

fix: remove loopsolver/version.py resurrected by release-please#315
lachlangrose merged 1 commit into
masterfrom
fix-loopsolver-version-corruption

Conversation

@lachlangrose

Copy link
Copy Markdown
Member

Summary

Heads up for later

The still-open workspace-package PR (map2loop / loopstructural_visualisation) adds its own legitimate version.py files under packages/. Once merged, the same repo-wide search will find those too and may try to bump them to LoopStructural's version number, colliding with loopstructural_visualisation's own release-please component (which already manages its version.py via an explicit extra-files entry). Worth addressing before that merge — likely by moving those packages off version.py in favor of a static pyproject.toml version too, same as this fix did for the root package.

Test plan

  • Confirmed no importers of loopsolver.version anywhere in the repo.
  • Confirmed current master pyproject.toml/manifest are correctly at 1.7.2, unaffected by this fix.
  • After merge, confirm the next release-please run's file-search no longer reports this file.

🤖 Generated with Claude Code

#314 deleted this file, but the release-please run triggered by that
same merge re-created it with __version__ = "1.7.2" (LoopStructural's
version, not loop_interpolation's real "0.0.1") before PR #313 was
merged. Its own filename-search log line still showed the file as
found on that run -- most likely GitHub's code-search index hadn't
caught up with the deletion commit yet.

Root cause: pointing the LoopStructural component's path at "." makes
release-please's "find any file named version.py" search genuinely
repo-wide rather than scoped to LoopStructural/, so it can collide
with any version.py anywhere in the tree, present or future (e.g. the
still-unmerged map2loop/loopstructural_visualisation packages each
have their own). There's no release-please config to scope that search
to a subpath, so the durable fix is having no other version.py files
left for it to find.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@lachlangrose
lachlangrose merged commit ae12958 into master Aug 14, 2026
23 of 24 checks passed
@lachlangrose
lachlangrose deleted the fix-loopsolver-version-corruption branch August 14, 2026 07:13
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