Upgrade Masterminds/sprig to v3 to remove replace directive blocking go install - #195
Merged
Merged
Conversation
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
antham
marked this pull request as ready for review
July 29, 2026 11:06
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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.
go install github.com/antham/chyle@latestwas failing in the release workflow becausego.modcontained areplacedirective (replace github.com/imdario/mergo => dario.cat/mergo v1.0.0), whichgo installprohibits.Changes
go.mod: Upgradegithub.com/Masterminds/sprig→github.com/Masterminds/sprig/v3 v3.3.0(v3 usesdario.cat/mergodirectly); remove thereplace github.com/imdario/mergo => dario.cat/mergodirective and the now-orphanedgithub.com/imdario/mergo v0.3.16indirect depchyle/tmplh/template.go: Update import path fromgithub.com/Masterminds/sprig→github.com/Masterminds/sprig/v3The sprig v2
+incompatiblemodule was the only consumer ofgithub.com/imdario/mergo; upgrading to v3 eliminates that dependency entirely.