Consider replacing jenkins-x/go-scm dependency ? #9321
vdemeester
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
The git resolver depends on
jenkins-x/go-scmfor SCM API access. This library is poorly maintained and blocking dependency updates.Immediate issue: PR #9098 (bump gitea SDK 0.21.0 → 0.22.1) cannot merge because go-scm is incompatible with the new API. The upstream fix (jenkins-x/go-scm#518) has been open since October 2025 with no activity.
Maintenance Status
jenkins-x/go-scm is a fork of drone/go-scm that added a
factorypackage andfaketest driver, but switched the gitea driver to use the gitea SDK (which causes this breakage).Our Actual Usage
The dependency is minimal and isolated (5 files, 2 active):
Contents.Find()Git.FindCommit()Repositories.Find()fakedriverfactory.NewClient()We don't use: PRs, issues, webhooks, reviews, deployments (~80% of the library).
Options
Switch to drone/go-scm - More active, no gitea SDK dependency. Requires adding ~200 lines for factory + test mocking.
Fork under tektoncd - Maintain only what we need, drop unused code. Ongoing maintenance burden.
Minimal custom implementation - Just implement file fetching directly. ~500 lines, no external dependency.
Wait for upstream - Risky given maintenance trajectory.
Questions
cc @tektoncd/core-maintainers
Beta Was this translation helpful? Give feedback.
All reactions