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

Allow using a projectref across scala versions with cross building #5511

Closed
wants to merge 1 commit into from

Conversation

raboof
Copy link
Contributor

@raboof raboof commented Apr 23, 2020

Reproduces #5497 and contains the fix by @ignasi35 from #5494 - I'm not seeing
actions/cross-test-only fail here

Reproduces sbt#5497 and contains the fix by @ignasi35 from sbt#5494 - I'm not seeing
actions/cross-test-only fail here
@raboof raboof force-pushed the cross-version-projectref-develop branch from ca1ccdd to fa9557d Compare April 23, 2020 12:53
case Seq() => Nil // should be unreachable
case multi if fullArgs.isEmpty =>
Seq(s"$SwitchCommand $verbose $v! all ${multi.mkString(" ")}")
case multi => Seq(s"$SwitchCommand $verbose $v!") ++ multi
case multi => Seq(s"$SwitchCommand $verbose $v") ++ multi
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, in #5494 I didn't really know what I was doing and I aggressively removed the use of !. Is it necessary to remove the use of ! in all three code occurrences to fix the issue?

After I sent #5494 I started thinking I might introduce other regressions.

PS: I noticed you didn't edit line 201 which makes me assume you indeed change the minimum occurrences required 😂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The reproducer doesn't need all 3 changes, but it would be quite inconsistent to not change all of these occurrences, as they seems quite similar. I'm definitely not familiar enough with this code to predict all the possible effects of this change, but at least the test suite doesn't appear to signal any regressions.

Comment on lines -161 to +162
// Force scala version
Seq(s"$SwitchCommand $verbose $version!", aggCommand)
// Set scala version
Seq(s"$SwitchCommand $verbose $version", aggCommand)
Copy link
Member

Choose a reason for hiding this comment

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

I think this ! is necessary for sbt 0.13 emulation - #5497 (comment)

@eed3si9n
Copy link
Member

Closing this in favor of #5512

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.

None yet

3 participants