Skip to content

Commit

Permalink
Add a deprecation warning when using the old concretizer (spack#25966)
Browse files Browse the repository at this point in the history
  • Loading branch information
alalazo authored Sep 16, 2021
1 parent b09ad2c commit fa6366a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/spack/spack/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
import os
import re
import sys
import warnings

import ruamel.yaml as yaml
import six
Expand Down Expand Up @@ -2399,6 +2400,13 @@ def _old_concretize(self, tests=False):
"""
import spack.concretize

# Add a warning message to inform users that the original concretizer
# will be removed in v0.18.0
msg = ('the original concretizer is currently being used.\n\tUpgrade to '
'"clingo" at your earliest convenience. The original concretizer '
'will be removed from Spack starting at v0.18.0')
warnings.warn(msg)

if not self.name:
raise spack.error.SpecError(
"Attempting to concretize anonymous spec")
Expand Down

0 comments on commit fa6366a

Please sign in to comment.