Skip to content

Upgrade Masterminds/sprig to v3 to remove replace directive blocking go install - #195

Merged
antham merged 2 commits into
masterfrom
copilot/fix-call-workflow-release-binaries
Jul 29, 2026
Merged

Upgrade Masterminds/sprig to v3 to remove replace directive blocking go install#195
antham merged 2 commits into
masterfrom
copilot/fix-call-workflow-release-binaries

Conversation

Copilot AI commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

go install github.com/antham/chyle@latest was failing in the release workflow because go.mod contained a replace directive (replace github.com/imdario/mergo => dario.cat/mergo v1.0.0), which go install prohibits.

Changes

  • go.mod: Upgrade github.com/Masterminds/spriggithub.com/Masterminds/sprig/v3 v3.3.0 (v3 uses dario.cat/mergo directly); remove the replace github.com/imdario/mergo => dario.cat/mergo directive and the now-orphaned github.com/imdario/mergo v0.3.16 indirect dep
  • chyle/tmplh/template.go: Update import path from github.com/Masterminds/spriggithub.com/Masterminds/sprig/v3

The sprig v2 +incompatible module was the only consumer of github.com/imdario/mergo; upgrading to v3 eliminates that dependency entirely.

The go install step in the release workflow was failing because go.mod had
a replace directive (replace github.com/imdario/mergo => dario.cat/mergo v1.0.0).
go install does not allow modules with replace directives.

Fix: upgrade github.com/Masterminds/sprig to /v3 which uses dario.cat/mergo
directly, allowing the replace directive and orphaned imdario/mergo dependency
to be removed from go.mod.
Copilot AI changed the title [WIP] Fix failing GitHub Actions job call-workflow / Release binaries Upgrade Masterminds/sprig to v3 to remove replace directive blocking go install Jul 29, 2026
Copilot AI requested a review from antham July 29, 2026 10:57
@antham
antham marked this pull request as ready for review July 29, 2026 11:06
@antham
antham merged commit bca4cce into master Jul 29, 2026
1 check passed
@antham
antham deleted the copilot/fix-call-workflow-release-binaries branch July 29, 2026 11:06
@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.82%. Comparing base (a158648) to head (7282393).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #195   +/-   ##
=======================================
  Coverage   91.82%   91.82%           
=======================================
  Files          58       58           
  Lines        1333     1333           
=======================================
  Hits         1224     1224           
  Misses         77       77           
  Partials       32       32           

☔ View full report in Codecov by Harness.
📢 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.

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