`mkenv` invariant assertion invalid with duplicate `unicode.org` packages.=
Eeeeenteresting. I can guess exactly why:
The error comes from here: https://github.com/pkgxdev/pkgx/blob/104affb636a128b9e9c6b7fb2f07f2f0ea17f128/src/prefab/construct-env.ts#L38-L40
And as of this PR: https://github.com/pkgxdev/libpkgx/pull/61, on January 27th, libpkgx allows multiple versions of unicode in the environment, specifically to deal with postgresql requiring v73 and most of our other packages built for v71. So, it is both the case that the assertion is correct, and the behavior is also correct.
Due to that PR, the assertion is outdated, since we can, now, have more distinct packages than unique packages. So, good find.
Originally posted by @jhheider in https://github.com/pkgxdev/pkgx/issues/984#issuecomment-1998325406
It sounds like you've done some thorough investigation into the issue and have identified the root cause as well as a potential solution. Your understanding of the changes in the libpkgx PR and how they relate to the assertion issue is impressive. If you're considering creating a PR to address this, your contribution would be greatly appreciated. Keep up the good work!
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.