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

Don't adjust package UUIDs in bundles #43

Merged
merged 1 commit into from
Jun 21, 2024
Merged

Conversation

MichaelHatherly
Copy link
Collaborator

@MichaelHatherly MichaelHatherly commented Jun 18, 2024

Previously package UUIDs to be bundled had their values altered so that they could live alongside the read version of the package and not conflict. This works fine aside from cases where a package migrates from a private registry into a public one and different environments require versions from different registries. Instead, maintain the same UUIDs, but during installation of a bundle drop versions of bundled packages that already exist within another registry, ie. a user has source access to the package at that version. The resolver will then pick the source available package instead of the bundled one transparently.

Required rewrite of the test framework. Now uses a dynamically generated custom registry using LocalRegistry.jl with locally registered custom packages that are then bundled. Reduces test runtime significantly for no loss in testing coverage.

@MichaelHatherly MichaelHatherly force-pushed the mh/no-uuid-mutation branch 7 times, most recently from c220f37 to fe8a6ee Compare June 20, 2024 16:23
Previously package UUIDs to be bundled had their values altered so that they
could live alongside the read version of the package and not conflict. This
works fine aside from cases where a package migrates from a private registry
into a public one and different environments require versions from different
registries. Instead, maintain the same UUIDs, but during installation of a
bundle drop versions of bundled packages that already exist within another
registry, ie. a user has source access to the package at that version. The
resolver will then pick the source available package instead of the bundled one
transparently.

Required rewrite of the test framework. Now uses a dynamically generated custom
registry using `LocalRegistry.jl` with locally registered custom packages that
are then bundled. Reduces test runtime significantly for no loss in testing
coverage.
@MichaelHatherly MichaelHatherly marked this pull request as ready for review June 21, 2024 14:36
@MichaelHatherly MichaelHatherly merged commit 51f22e6 into main Jun 21, 2024
13 checks passed
@MichaelHatherly MichaelHatherly deleted the mh/no-uuid-mutation branch June 21, 2024 14:56
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