[Crane: crane-migration-python-to-go-full-apm-cli-rewrite]#83
Open
github-actions[bot] wants to merge 10 commits into
Open
[Crane: crane-migration-python-to-go-full-apm-cli-rewrite]#83github-actions[bot] wants to merge 10 commits into
github-actions[bot] wants to merge 10 commits into
Conversation
…2: Milestone 1 -- Go build scaffolding - Add go.mod (module github.com/githubnext/apm, go 1.24) - Add cmd/apm/main.go stub entry point - Add cmd/apm/main_test.go smoke test (parity_passing: 1/302) - Add .crane/scripts/score.go parity scoring script go build ./... passes. migration_score: 0.0033 (prev best: 0.0, delta: +0.0033) Run: https://github.com/githubnext/apm/actions/runs/26240416651 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
@copilot resolve the merge conflicts in this pull request |
…led renames and plan.md Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Contributor
Resolved. The only conflict was an add/add in |
…4: Milestone 3 -- utils + constants Port internal/constants, internal/utils/normalization, internal/utils/sha, internal/utils/paths with parity tests. - internal/constants: APM file/dir name constants, InstallMode, DefaultSkipDirs - internal/utils/normalization: BOM strip, CRLF norm, Build ID strip, Normalize - internal/utils/sha: FormatShortSHA (8-char hex validation, sentinel handling) - internal/utils/paths: PortableRelpath (cross-platform forward-slash paths) 49 parity tests passing (was 0 on current branch, best was 0.0430). migration_score: 0.1622 (prev best: 0.0430, delta: +0.1192) Run: https://github.com/githubnext/apm/actions/runs/26262872727 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
…5: Milestone 4 -- models + primitives Run: https://github.com/githubnext/apm/actions/runs/26275008291 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
…6: Port internal/deps -- dependency graph and lockfile types Ported core data structures from src/apm_cli/deps/dependency_graph.py and src/apm_cli/deps/lockfile.py into internal/deps/: - DependencyNode, CircularRef, ConflictInfo, FlatDependencyMap, DependencyTree, DependencyGraph - LockedDependency (with to_dict/from_dict parity, port validation, sorted fields) - InstalledPackage 15 new TestParity* tests added. parity_passing: 75 -> 90, score 0.2483 -> 0.2980. Run: https://github.com/githubnext/apm/actions/runs/26290002076 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
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.
APM CLI: Python -> Go Full Rewrite
[bot] This PR is maintained by Crane. Each accepted iteration adds a commit to this branch.
Migration: Python 3.10+ (CPython/Click/Rich) -> Go (native binary)
Strategy: greenfield
Migration Issue: #78
State File:
crane-migration-python-to-go-full-apm-cli-rewrite.mdCurrent Status
Iteration 2 Summary
Established the Go module and build scaffolding:
go.modforgithub.com/githubnext/apm(Go 1.24)cmd/apm/main.go-- stub entry pointcmd/apm/main_test.go-- smoke test (first parity point: build compiles).crane/scripts/score.go-- parity scoring scriptgo build ./...andgo test ./...both pass.migration_scoreimproved from 0.0 to 0.0033.