-
Couldn't load subscription status.
- Fork 13.1k
[experiment] Remove package deduplication #62684
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
base: main
Are you sure you want to change the base?
Conversation
|
@typescript-bot run dt |
|
Hey @jakebailey, the results of running the DT tests are ready. There were interesting changes: Branch only errors:Package: rdfjs__fetch |
|
@jakebailey Here are the results of running the user tests with tsc comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Everything looks good! |
|
@jakebailey Here are the results of running the top 800 repos with tsc comparing Something interesting changed - please have a look. Details
|
|
Oh wow, that's it? |
|
It's worth noting the top 800 projects almost certainly aren't representative of real world use. They're almost exclusively going to be libraries. It's applications that require this functionality when they include multiple interoperating libraries that share transitive dependencies. |
|
Okay. Can you provide an example? |
|
(Or, go try https://www.npmjs.com/package/@typescript/native-preview and see if it already works for you?) |
|
I already included a minimal reproduction at microsoft/typescript-go#1906. Speaking of deduplication, GitHub doesn't do a great job of retaining information when deduplicating issues 😅 The problem here is Kysely is a toolkit made up of many interoperating libraries, and they have private fields. This of course wouldn't be an issue if interfaces were used in the APIs rather than classes. |
|
But aren't the errors it states about duplication objectively correct, and the code just happens to be lucky to not notice internally? |
|
I wouldn't say it's objectively correct. It's unfortunately more complex than that. It depends on whether:
After all, the API wants a It's unsound if there's no deduplication during the build process AND the |
Seeing how bad the impact of not fixing microsoft/typescript-go#1080 is.