ISSUE DESCRIPTION [BUG] apm install fail second time with Content hash mismatch Describe…
- User
ISSUE DESCRIPTION
[BUG] apm install fail second time with Content hash mismatch Describe the bug I can install my repo (see apm.yml further down) via
apm install <org>/<repo>/package/<project>just fine (kinda, see the logs, it looks wonky but maybe it's just a new feature) but the second time I runapm installit will fail consistently withContent hash mismatch.To Reproduce Steps to reproduce the behavior:
- apm install <repo>
- apm install
Expected behavior A clear and concise description of what you expected to happen.
Environment (please complete the following information):
- OS: Windows
- APM Version: 0.16.0
Logs
powershell Assistant
This is a Python project.
Assistant
Simplify by using the
parseclassmethod with full dependency string, matching apm.yml format used in the issue.Assistant
Now let's view the exact block for editing:
Assistant
Let's verify the edit and check syntax:
Assistant
Now let's run the existing relevant tests to make sure nothing's broken.
Assistant
Let's also run broader install test suite related to sources/hash/lockfile to be safe.
Assistant
All pass. Now let's write a targeted reproduction test to confirm the fix resolves the exact scenario (unpinned dep with hash mismatch does NOT sys.exit, but pinned still does).
Assistant
Both scenarios behave as expected: unpinned (floating-ref) content-hash drift no longer aborts install, while pinned dependencies still hard-fail on genuine mismatch. Now let's clean up the temp files and run the broader test suite to be safe.
Assistant
All unit tests pass. Let's also run the integration tests subset to be extra careful (excluding ones requiring network, but let's check).
Assistant
All pass. Let's view the final diff.
Assistant
Now clean up temp files and verify final state.
Assistant
Let's also update the CHANGELOG to document the fix, following repository conventions.
Assistant
Now let's run the full test suite once more (unit) to confirm everything remains green, and double check git diff is clean of unrelated files.
Assistant
apm.lock.yaml gets touched again by test runs. Revert it since it's unrelated.
Assistant
Good, clean diff now. Let's do a final review of the checklist items.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.