You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Checks that the current opam switch contains the packages from opam.export at the same version.
56
67
# This check is disabled in the pure nix environment (that does not use opam).
57
-
check_opam_switch:
68
+
check_opam_switch: switch
58
69
ifneq ($(DISABLE_CHECK_OPAM_SWITCH), true)
59
-
ifeq (, $(shell which check_opam_switch))
60
-
$(warning The check_opam_switch binary was not found in the PATH.)
61
-
$(error The current opam switch should likely be updated by running: "opam switch import opam.export")
62
-
else
63
-
check_opam_switch opam.export
64
-
endif
70
+
@which check_opam_switch 2>/dev/null >/dev/null || ( echo "The check_opam_switch binary was not found in the PATH, try: opam switch import opam.export" >&2 && exit 1 )
0 commit comments