Skip to content

Depend on ctdc-core instead of a second copy of the contract engine - #50

Merged
vim89 merged 4 commits into
mainfrom
depend-on-ctdc-core
Oct 7, 2026
Merged

vim89 merged 4 commits into
mainfrom
depend-on-ctdc-core

Conversation

@vim89

@vim89 vim89 commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Deletes FlowForge's copy of the compile-time contract engine and depends on the ctdc-core library instead, so there is one implementation to maintain.
The contracts package now aliases the library types, so every call site stays unchanged.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ba7e581ad7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

case "core" => Core.all ++ Monitoring.prometheus ++ Testing.unit
case "core" =>
Core.all ++ Monitoring.prometheus ++ Testing.unit ++ Seq(
"com.vitthalmirji" %% "ctdc-core" % Versions.ctdc,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Make the ctdc snapshot resolvable by core

On a clean machine, core cannot resolve this new 0.1.0-SNAPSHOT dependency: the Sonatype snapshot resolvers at build.sbt:41 are declared as a root-project resolvers setting rather than ThisBuild / resolvers, so they are not inherited by the separately defined core project, and the CI workflow only checks out FlowForge rather than publishing ctdc locally. Configure the snapshot repository for core/ThisBuild, or depend on a released artifact available from the default repository.

Useful? React with 👍 / 👎.

Comment on lines +10 to +11
// 3.3.6 and not 3.3.3: ctdc-core is built with 3.3.6 and an older compiler cannot read newer TASTy.
val scala3 = "3.3.6"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Update the Scala 3 CI overrides to 3.3.6

The version catalog now requires 3.3.6 specifically because the older compiler cannot read ctdc's TASTy, but .github/workflows/ci.yml still invokes ++3.3.3 in the Scala 3 formatting step and sets the core/testQuick matrix entry to 3.3.3. Those explicit overrides bypass this new default, so the Scala 3 CI job still compiles core and its 3.3.6-built dependency with the incompatible compiler.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T08:37:27.969532Z ba7e581 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vim89
vim89 merged commit c0f90b6 into main Oct 7, 2026
25 of 26 checks passed
@vim89
vim89 deleted the depend-on-ctdc-core branch October 7, 2026 09:17
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.

1 participant