Skip to content

Commit

Permalink
Pass allow_releases appropriately in the plugin resolver.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Jan 24, 2017
1 parent b4a2b66 commit 35e6188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/python/pants/bin/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ python_library(
'src/python/pants/subsystem:subsystem',
'src/python/pants/util:dirutil',
'src/python/pants/util:memo',
'src/python/pants:version',
]
)

Expand Down
5 changes: 3 additions & 2 deletions src/python/pants/bin/plugin_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from pants.subsystem.subsystem import Subsystem
from pants.util.dirutil import safe_open
from pants.util.memo import memoized_property

from pants.version import PANTS_SEMVER

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -90,7 +90,8 @@ def _resolve_plugins(self):
context=self._python_repos.get_network_context(),
precedence=precedence,
cache=self.plugin_cache_dir,
cache_ttl=self._python_setup.resolver_cache_ttl)
cache_ttl=self._python_setup.resolver_cache_ttl,
allow_prereleases=PANTS_SEMVER.is_prerelease)

@memoized_property
def plugin_cache_dir(self):
Expand Down

0 comments on commit 35e6188

Please sign in to comment.