Skip to content

chore: re-add development replaces#3232

Open
julienrbrt wants to merge 1 commit intomainfrom
julien/post-v1
Open

chore: re-add development replaces#3232
julienrbrt wants to merge 1 commit intomainfrom
julien/post-v1

Conversation

@julienrbrt
Copy link
Copy Markdown
Member

@julienrbrt julienrbrt commented Apr 7, 2026

Overview

Re-add development replaces

Summary by CodeRabbit

  • Chores
    • Activated local module path resolution for core application dependencies across development environments. Dependencies now resolve from local paths instead of published releases, enabling faster iteration, immediate integrated testing of changes across applications, and reduced build times. This improves developer productivity and feedback cycles during active development phases.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 7, 2026

📝 Walkthrough

Walkthrough

Two Go module configuration files have been modified to activate replace directives that redirect module imports from published versions to local relative paths. These changes affect dependency resolution for github.com/evstack/ev-node and related modules during builds and tests.

Changes

Cohort / File(s) Summary
Go Module Replace Directives
apps/evm/go.mod, apps/testapp/go.mod
Uncommented and activated replace directives to redirect module dependencies to local relative paths instead of published versions, affecting dependency graph resolution.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • chore: prep rc.2 #3231: Directly modifies the same go.mod replace directives for github.com/evstack/ev-node but reverses the operation (comments them out and bumps versions).
  • build(deps): bump ev-node #3144: Also modifies the same go.mod replace/require settings for github.com/evstack/ev-node in both apps/evm and apps/testapp with opposing changes.

Suggested reviewers

  • tac0turtle

Poem

🐰 A hop and a skip through the module path,
Local dependencies, the developer's bath!
Uncommented directives now spring to life,
No version bumps, no dependency strife,
Just local pointers dancing so free! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description only contains the template header and a minimal 'Re-add development replaces' statement without addressing the required 'Overview' section with proper context, background, goal, rationale, or any linked issues. Expand the Overview section to explain why development replaces are needed, what issue this resolves, and the impact on the build/test workflow. Include a link to any related issue (e.g., 'Closes #').
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: re-add development replaces' directly matches the changeset, which uncomments and activates replace directives in go.mod files to restore local development dependencies.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch julien/post-v1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@claude
Copy link
Copy Markdown
Contributor

claude bot commented Apr 7, 2026

Claude finished @julienrbrt's task in 39s —— View job


Code Review

  • Gather context and read changed files
  • Analyze changes
  • Post review

This is a clean post-release maintenance PR that re-enables local replace directives in the monorepo's go.mod files after the v1 release process (which had commented them out to resolve against published module versions).

Summary of changes:

File Change
apps/evm/go.mod Uncomments replace directives pointing ev-node and ev-node/execution/evm to local paths
apps/testapp/go.mod Uncomments replace directive pointing ev-node to local path
apps/evm/go.sum Removes checksums for ev-node v1.1.0-rc.2 and ev-node/execution/evm v1.0.1 (no longer needed with local replaces)
apps/testapp/go.sum Removes checksum for ev-node v1.1.0-rc.2 (no longer needed with local replace)

Assessment:

The changes are correct and expected for post-release development workflow in a Go monorepo. No issues found:

  • replace directives use relative paths (../../) which is the idiomatic approach for monorepo local development
  • go.sum is correctly cleaned up — removing remote checksums for modules now sourced locally avoids stale/conflicting entries
  • The go.sum still retains ev-node/core v1.0.0 checksums (which doesn't have a corresponding replace directive), which is correct

No issues to flag. This is a straightforward and necessary maintenance change. LGTM.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

The latest Buf updates on your PR. Results from workflow CI / buf-check (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped✅ passed✅ passedApr 7, 2026, 5:25 PM

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.67%. Comparing base (d2a29e8) to head (ffcfb7f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3232   +/-   ##
=======================================
  Coverage   61.67%   61.67%           
=======================================
  Files         120      120           
  Lines       12635    12635           
=======================================
  Hits         7793     7793           
  Misses       3968     3968           
  Partials      874      874           
Flag Coverage Δ
combined 61.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@julienrbrt julienrbrt marked this pull request as ready for review April 7, 2026 18:57
@julienrbrt julienrbrt enabled auto-merge April 7, 2026 18:57
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
apps/testapp/go.mod (1)

5-5: Minor: Redundant path syntax in replace directive.

The path ../../. is functionally equivalent to ../../ (the trailing /. references the current directory after navigating up two levels). While valid, the cleaner form would be ../../ without the trailing dot.

♻️ Cleaner path syntax
-replace github.com/evstack/ev-node => ../../.
+replace github.com/evstack/ev-node => ../../

Note: The same consistency concerns flagged in apps/evm/go.mod regarding missing replace directives for the core submodule and inconsistency across the monorepo apply here as well.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/testapp/go.mod` at line 5, Update the replace directive in
apps/testapp/go.mod by changing the path in the line "replace
github.com/evstack/ev-node => ../../." to the cleaner form "../../" (i.e.,
remove the trailing "/."); also scan other go.mod files (e.g., apps/evm/go.mod)
for similar replace inconsistencies and align the core submodule replace
directives across the monorepo for consistency.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/evm/go.mod`:
- Around line 5-8: Add a replace directive for the local core module so the
go.mod's replace block points the dependency github.com/evstack/ev-node/core to
the local folder; specifically, update the replace block that currently contains
github.com/evstack/ev-node and github.com/evstack/ev-node/execution/evm to also
include github.com/evstack/ev-node/core => ../../core so the core dependency
resolves to the local source rather than the published v1.0.0.

---

Nitpick comments:
In `@apps/testapp/go.mod`:
- Line 5: Update the replace directive in apps/testapp/go.mod by changing the
path in the line "replace github.com/evstack/ev-node => ../../." to the cleaner
form "../../" (i.e., remove the trailing "/."); also scan other go.mod files
(e.g., apps/evm/go.mod) for similar replace inconsistencies and align the core
submodule replace directives across the monorepo for consistency.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3bb21b12-343d-461a-a88c-16e5ef1aa7fa

📥 Commits

Reviewing files that changed from the base of the PR and between d2a29e8 and ffcfb7f.

⛔ Files ignored due to path filters (2)
  • apps/evm/go.sum is excluded by !**/*.sum
  • apps/testapp/go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • apps/evm/go.mod
  • apps/testapp/go.mod

Comment on lines +5 to +8
replace (
github.com/evstack/ev-node => ../../
github.com/evstack/ev-node/execution/evm => ../../execution/evm
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Check replace directive consistency and workspace configuration

echo "=== Checking if go.work exists ==="
if [ -f "go.work" ]; then
  echo "✓ go.work exists - workspace mode is active (replace directives below are ignored)"
  cat go.work
else
  echo "✗ go.work does not exist - replace directives are active"
fi

echo -e "\n=== Finding all go.mod files ==="
fd -t f '^go\.mod$'

echo -e "\n=== Checking replace directives in all go.mod files ==="
fd -t f '^go\.mod$' --exec sh -c 'echo "--- {} ---"; grep -A 5 "^replace" {} || echo "No replace directives found"'

echo -e "\n=== Checking requires for ev-node modules ==="
rg -n "^\s*github\.com/evstack/ev-node" -g 'go.mod' --no-heading

Repository: evstack/ev-node

Length of output: 5502


Add missing replace directive for github.com/evstack/ev-node/core.

This module requires github.com/evstack/ev-node/core v1.0.0 (line 13) but lacks a replace directive for it, unlike the replaces for ev-node and ev-node/execution/evm (lines 6-7). This causes the core module to resolve to the published version while other submodules use local code, potentially creating version conflicts if the local ev-node depends on unreleased changes to core.

Add a replace directive for core:

replace github.com/evstack/ev-node/core => ../../core

Note: This pattern is consistent across modules in the monorepo (apps/grpc, apps/testapp, etc.). Consider whether this is intentional or should be systematically addressed across all modules.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/evm/go.mod` around lines 5 - 8, Add a replace directive for the local
core module so the go.mod's replace block points the dependency
github.com/evstack/ev-node/core to the local folder; specifically, update the
replace block that currently contains github.com/evstack/ev-node and
github.com/evstack/ev-node/execution/evm to also include
github.com/evstack/ev-node/core => ../../core so the core dependency resolves to
the local source rather than the published v1.0.0.

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