Skip to content

Conversation

@kubukoz
Copy link
Member

@kubukoz kubukoz commented Apr 29, 2025

PR Checklist (not all items are relevant to all PRs)

  • Added unit-tests (for runtime code)
  • Added bootstrapped code + smoke tests (when the rendering logic is modified)
  • Added build-plugins integration tests (when reflection loading is required at codegen-time)
  • Added alloy compliance tests (when simpleRestJson protocol behaviour is expanded/updated)
  • Updated dynamic module to match generated-code behaviour
  • Added documentation
  • Updated changelog

@kubukoz kubukoz force-pushed the imagine-no-isolation branch from ab5e6f9 to 6ca4370 Compare May 6, 2025 17:50
@kubukoz kubukoz changed the title What if... there was no isolation? Isolation via null parent ClassLoader May 7, 2025
Comment on lines +51 to +55
val cp = resolveDependencies(
s"com.disneystreaming.smithy4s:smithy4s-codegen-cli_2.13:${BuildInfo.version}" ::
args.dependencies,
args.localJars,
args.repositories
Copy link
Contributor

@ghostbuster91 ghostbuster91 May 7, 2025

Choose a reason for hiding this comment

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

Very clever 👍

There is one downside though:
This is not ideal as coursier's resolution will just pick the latest versions preventing users from using anything older than what codegen was compiled against.

But maybe this is good enough trade-off given its low complexity? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

imo this is actually good 😅 if you used older things you might be risking that the old version is not going to work with the codegen anyway, i.e. it might not be compliant with more recent requirements in the smithy model etc.

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