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

feat: disable single-library mode for dist=false #1441

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Conversation

mistydemeo
Copy link
Contributor

In the past, we'd ignore dist=false when trying to enable single-package/library mode. This is, frankly, quite confusing and not desirable. Even if it's a slightly backwards incompatible change, we should make this do what it actually says.

Fixes #1287.

Copy link
Member

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

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

this generally looks good to me- could we add a test or two?

@mistydemeo
Copy link
Contributor Author

Good thought, I'll check and see how testable this seems.

@mistydemeo
Copy link
Contributor Author

Simple enough, was able to add it to a new test to ensure it errors out when dist = false is added.

@ashleygwilliams ashleygwilliams self-requested a review October 16, 2024 16:09
@mistydemeo
Copy link
Contributor Author

Test needs a little more work. This doesn't test the precise conditions that this PR addresses; that test passes on main.

@ashleygwilliams ashleygwilliams added this to the 0.25.0 milestone Oct 24, 2024
@ashleygwilliams ashleygwilliams modified the milestones: 0.25.0, 0.26.0 Nov 1, 2024
@mistydemeo
Copy link
Contributor Author

Found a proper repro case; I'm readying a test case that would work here.

@mistydemeo
Copy link
Contributor Author

Have a proper repro case now; I can confirm this test fails on main and passes in this PR.

@mistydemeo mistydemeo merged commit 28dde10 into main Dec 5, 2024
18 checks passed
@mistydemeo mistydemeo deleted the dist-changes branch December 5, 2024 18:22
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.

make dist=false make a package inelligible for single-package-mode (also don't error for "unknown" tags?)
2 participants