diff --git a/src/babashka/pods/impl.clj b/src/babashka/pods/impl.clj index 4c4312b..f4f9820 100644 --- a/src/babashka/pods/impl.clj +++ b/src/babashka/pods/impl.clj @@ -315,6 +315,11 @@ (println (str/join " " (map pr-str strs))))) (defn resolve-pod [pod-spec {:keys [:version :path :force] :as opts}] + (when (qualified-symbol? pod-spec) + (when (and (not version) (not path)) + (throw (IllegalArgumentException. "Version or path must be provided"))) + (when (and version path) + (throw (IllegalArgumentException. "You must provide either version or path, not both")))) (let [resolved (when (and (qualified-symbol? pod-spec) version) (resolver/resolve pod-spec version force)) opts (if resolved