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

Pass allow_prerelease to other iterators (Static, Caching) #373

Merged
merged 1 commit into from
Apr 6, 2017

Conversation

toddgardner
Copy link
Contributor

Not sure if this is the best way to do this or test this, but while investigating another bug I noticed caching resolver always ignored prerelease versions, as it constructed it's own iterator and didn't take into account the options passed on resolve. This fixes that and tests it.

@toddgardner toddgardner changed the title Allow the caching resolver to use pre-release versions Pass allow_prerelease to other iterators (Static, Caching) Apr 3, 2017
@toddgardner
Copy link
Contributor Author

I found another issue of the same nature, where allow_prerelease wasn't being passed to StaticIterator either, this meant two requirements like pantsbuild.pants>=1.3.0.dev1 and pantsbuild.pants==1.3.0.dev14 could never be satisfied, since the static iterator would exclude all prereleases regardless of allow_prereleases.

I rolled it into this change since it touched the same code.

Note this will have to be updated if #374 is accepted as it includes defaults that should be updated.

@bloomonkey
Copy link

+1
I think I'm getting bitten by this too - a dependency of one of my dependencies is a pre-release.

@jsirois
Copy link
Member

jsirois commented Apr 6, 2017

@toddgardner - #374 is now merged, please update.

@jsirois jsirois mentioned this pull request Apr 6, 2017
@toddgardner toddgardner force-pushed the todd-prelease-cache branch from c0323a5 to 2a8f19b Compare April 6, 2017 14:33
@toddgardner
Copy link
Contributor Author

Updated and added some tests for the defaults.

Copy link
Member

@jsirois jsirois left a comment

Choose a reason for hiding this comment

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

Looks great - thanks Todd!

@jsirois jsirois merged commit 4d11b02 into pex-tool:master Apr 6, 2017
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.

3 participants