Flight Log / onflow/flow-go #7584
Migrate from golang-lru v1 to v2 — a Devin (Cognition) bot flight
The Devin bot (Cognition) opened this pull request in onflow/flow-go on Jul 14, 2025; merged after rework in 3.2 h, merged by @peterargue: +51 −51, 3 files, 4 reviews.
- Lines
- +51 −51
- Files
- 3
- Commits
- 2
- Reviews
- 4 (1 ✕)
- To merge
- 3.2 h
- Task
- refactor
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
Devin, working in onflow/flow-go, was asked to migrate from golang-lru v1 to v2 in a refactor. The pull request touched three files across two commits, with 51 additions and 51 deletions. Four reviews were filed, including one change request, which led to a partial migration scoped around the feature/malleability branch. The pull request merged after rework about 3.19 hours later.
“The change to the `baselineLRU` will conflict with the changes that we will bring from the [`feature/malleability`](https://github.com/onflow/flow-go/blob/feature/malleability/module/mempool/stdmap/backDataHeapBenchmark_test.go#L111). We have moved away from using `[flow.Identifier, flow.Entity]`”
— from the review (source)
From the pull request description
# Partial migration from golang-lru v1 to v2 ## Summary This PR implements a **partial migration** from `github.com/hashicorp/golang-lru` (v1) to `github.com/hashicorp/golang-lru/v2` based on feedback from @durkmurder about conflicts with the `feature/malleability` branch. **Final state:** - ✅ **…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —committedDevin AI
- —reviewed
- —reviewed
- —reviewed
- —committedDevin AI
- —reviewed
- Jul 14, 2025changes requesteddurkmurder↗
- Jul 14, 2025mergedpeterargue
- Jul 14, 2025closedpeterargue
Read next
Cite this flight: AgentRiders Flight Log, onflow/flow-go#7584, record updated Nov 4, 2026, https://agentriders.com/logs/onflow/flow-go/7584/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.