Skip to content

chore: add replace directives for mergo in go.mod#396

Merged
jason-lynch merged 1 commit into
mainfrom
build/replace-mergo-in-go-mod
Jun 3, 2026
Merged

chore: add replace directives for mergo in go.mod#396
jason-lynch merged 1 commit into
mainfrom
build/replace-mergo-in-go-mod

Conversation

@jason-lynch
Copy link
Copy Markdown
Member

Summary

The domain registration for dario.cat has expired, which has broken our licenses check and breaks build anywhere that doesn't have this module cached. There's a potential security risk if the author does not re-register this domain because a malicious party could capture this domain and redirect to a modified copy of the module.

Luckily, this is just a vanity URL, and the module is hosted on GitHub. This commit fixes the issue by adding replace directives to our go.mod file. Note that we will need to manually keep the replaced version in sync with our dependencies.

The domain registration for dario.cat has expired, which has broken our
licenses check and breaks build anywhere that doesn't have this module
cached. There's a potential security risk if the author does not
re-register this domain because a malicious party could capture this
domain and redirect to a modified copy of the module.

Luckily, this is just a vanity URL, and the module is hosted on
GitHub. This commit fixes the issue by adding `replace` directives to
our go.mod file. Note that we will need to manually keep the replaced
version in sync with our dependencies.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 3, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e26ce700-c8c3-424b-bfd9-e35783ccff53

📥 Commits

Reviewing files that changed from the base of the PR and between dd1ca23 and 37a61ff.

⛔ Files ignored due to path filters (2)
  • go.sum is excluded by !**/*.sum
  • server/internal/resource/migrations/schematool/go.sum is excluded by !**/*.sum
📒 Files selected for processing (3)
  • NOTICE.txt
  • go.mod
  • server/internal/resource/migrations/schematool/go.mod

📝 Walkthrough

Walkthrough

This PR migrates the mergo dependency from the imdario GitHub organization to the darccio organization. The BSD-3-Clause license attribution is updated to reflect the new repository, and Go module replacement directives in both the root and schematool modules redirect dario.cat/mergo resolution to github.com/darccio/mergo.

Changes

Mergo dependency migration to darccio organization

Layer / File(s) Summary
Redirect mergo to darccio and update license attribution
NOTICE.txt, go.mod, server/internal/resource/migrations/schematool/go.mod
License attribution for dario.cat/mergo is updated to point to the darccio repository, and Go module replacement directives in the root and schematool modules both resolve mergo from github.com/darccio/mergo.

Poem

🐰 A hop to the left, a hop to the right,
Mergo moves home to a brighter new light,
From imdario's way to darccio's care,
License and modules all updated with flair! 🌟

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description provides a clear summary of the issue and solution, but is missing required sections like Changes, Testing, Checklist, and Notes for Reviewers from the template. Add the missing template sections: Changes (bulleted list of go.mod updates), Testing (verification steps), Checklist items, and Notes for Reviewers (e.g., version sync requirements).
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding replace directives for mergo in go.mod files to resolve the expired dario.cat domain issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ 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 build/replace-mergo-in-go-mod

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.

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Copy link
Copy Markdown
Contributor

@tsivaprasad tsivaprasad left a comment

Choose a reason for hiding this comment

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

Looks good.

@jason-lynch jason-lynch merged commit 3fb1e15 into main Jun 3, 2026
3 checks passed
@jason-lynch jason-lynch deleted the build/replace-mergo-in-go-mod branch June 3, 2026 17:18
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.

2 participants