Skip to content

build: drop unused sbt-github-packages plugin - #747

Merged
yshyn-iohk merged 1 commit into
mainfrom
fix/drop-unused-sbt-github-packages
Nov 10, 2026
Merged

yshyn-iohk merged 1 commit into
mainfrom
fix/drop-unused-sbt-github-packages

Conversation

@patextreme

Copy link
Copy Markdown
Contributor

project/plugins.sbt adds com.codecommit:sbt-github-packages:0.5.3 whenever GITHUB_TOKEN is set:

// Github Packages
if (sys.env.get("GITHUB_TOKEN").isDefined) {
  ...
  val dependency = "com.codecommit" % "sbt-github-packages" % "0.5.3"
  ...
}

CI always sets GITHUB_TOKEN, so the plugin is resolved on every build — but nothing uses it. Verified:

  • no githubPackages* settings anywhere in build.sbt or project/*.scala
  • no publishTo pointing at GitHub Packages (the only publish / skip lines are for non-published modules)
  • no mention of GitHub Packages in the docs

It is also one of the plugins blocking the sbt 2 upgrade in #743: sbt-github-packages has no _sbt2_3 artifact (last release 0.5.3, 2021), so sbt 2.0.12 dies at plugin resolution with

[error] Error downloading com.codecommit:sbt-github-packages_sbt2_3:0.5.3 → Not found

Verification

CI here is the check: it runs with GITHUB_TOKEN set, so it exercises exactly the branch that previously added the plugin. If the removal were wrong, the build would fail on a missing githubPackagesPublish or similar — nothing references it, so it should be a no-op apart from one fewer plugin to resolve.

This removes one of six sbt 2 blockers. The others (sbt-converter, sbt-web-scalajs-bundler, sbt-jsdependencies, sbt-coveralls, sbt-revolver) still have no sbt 2 artifacts.

@patextreme
patextreme requested a review from a team as a code owner November 4, 2026 16:33
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Integration Test Results

 5 files  ±0   5 suites  ±0   11s ⏱️ ±0s
17 tests ±0  17 ✅ ±0  0 💤 ±0  0 ❌ ±0 
20 runs  ±0  20 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit f5185da. ± Comparison against base commit 2776917.

♻️ This comment has been updated with latest results.

@yshyn-iohk yshyn-iohk left a comment

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.

Reviewed c61c089 against a505bd1. The complete change removes the conditional sbt-github-packages plugin from project/plugins.sbt. I checked the build configuration, remaining plugins, CI and Docker release workflow: there are no GitHub Packages publishing settings depending on it, and Docker publishing still uses native-packager. No runtime, public API, authentication or data-model change is introduced.

Observed CI for this revision: all 13 checks passed, including CI, integration tests, dependency-review, CodeQL, SonarCloud, lint, DCO and PR-title validation. CI logs show 33 unit tests passing; the integration report shows 17 tests across 20 runs, with no failures. CI sets GITHUB_TOKEN, exercising the configuration that previously loaded this plugin. I inspected CI results, not local test execution. No unresolved review objections found.

This removes one sbt 2 migration blocker; it does not establish that #743 or the remaining plugin upgrades are compatible.

`project/plugins.sbt` conditionally adds `com.codecommit:sbt-github-packages`
whenever `GITHUB_TOKEN` is set, which is true in CI. Nothing in the build uses
it: there are no `githubPackages*` settings and no `publishTo` pointing at
GitHub Packages anywhere in the repo, and no documentation mentions it.

Its only observable effect is to be resolved on every build, and since
sbt-github-packages has no `_sbt2_3` artifact (last release 0.5.3, 2021) it is
one of the plugins that stops the sbt 2 upgrade in #743.

Signed-off-by: Pat Losoponkul <patextreme@hotmail.com>
@yshyn-iohk
yshyn-iohk force-pushed the fix/drop-unused-sbt-github-packages branch from c61c089 to f5185da Compare November 10, 2026 15:11
@sonarqubecloud

Copy link
Copy Markdown

@yshyn-iohk
yshyn-iohk merged commit cebc1a8 into main Nov 10, 2026
@yshyn-iohk
yshyn-iohk deleted the fix/drop-unused-sbt-github-packages branch November 10, 2026 19:16
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