Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation unit name conflicts with runtime sub-libraries (e.g. core) #85

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

leviroth
Copy link
Contributor

Fixes #19.

The libraries in subdirectories under riot/runtime have been merged into runtime itself.

In various places we now need to refer to (e.g.) Runtime.Core instead of Core directly.

To avoid name conflicts with the Runtime module itself (including via Lib.Runtime), I renamed runtime to riot_runtime.

In all, the following compilation unit names have been purged from the global namespace:

  • Core
  • Log
  • Runtime
  • Scheduler
  • Time
  • Util

N.b. There are still libraries named lib, global, and logger in this package. Since those names are pretty generic, it might be a good idea to do similar work to eliminate them.

@leostera
Copy link
Collaborator

Hi @leviroth! Thanks for the PR ✨ – this looks good to me, just need some rebasing and we should be good to merge :)

The libraries in subdirectories under `riot/runtime` have been merged
into `runtime` itself.

In various places we now need to refer to (e.g.) `Runtime.Core` instead
of `Core` directly.

To avoid name conflicts with the `Runtime` module itself (including via
`Lib.Runtime`), I renamed `runtime` to `riot_runtime`.

In all, the following compilation unit names have been purged from the
global namespace:

- Core
- Log
- Runtime
- Scheduler
- Time
- Util
@leostera leostera merged commit d05df0e into riot-ml:main Jul 3, 2024
@leostera
Copy link
Collaborator

leostera commented Jul 3, 2024

Thanks for the contrib @leviroth! 🙏🏼 This should make it easier to try Riot with busy opam switches.

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.

core sublibrary clashes with core alternate standard library
2 participants