Skip to content

Commit

Permalink
Get prerelease packages when specifically requested (#4295)
Browse files Browse the repository at this point in the history
* Get prerelease packages when specifically required. Add test validating it works

* Update CHANGELOG.md

automatic commit by git-black, original commits:
  0aacd99
  • Loading branch information
joellabes authored and iknox-fa committed Feb 8, 2022
1 parent da23909 commit e82391d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/dbt/deps/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ def resolved(self) -> RegistryPinnedPackage:
raise DependencyException(new_msg) from e

available = registry.get_available_versions(self.package)
prerelease_version_specified = any(
bool(version.prerelease) for version in self.versions
)
prerelease_version_specified = any(bool(version.prerelease) for version in self.versions)
installable = semver.filter_installable(
available,
self.install_prerelease or prerelease_version_specified
Expand Down

0 comments on commit e82391d

Please sign in to comment.