class LicenseFinder::Conda
def conda_search_info(list_entry)
def conda_search_info(list_entry) command = 'conda search --info --json ' command += "--channel #{list_entry['channel']} " if list_entry['channel'] && !list_entry['channel'].empty? command += "'#{list_entry['name']} #{list_entry['version']}'" # Errors from conda (in --json mode, at least) show up in stdout, not stderr stdout, _stderr, status = activated_conda(command) name = list_entry['name'] if status.success? JSON(stdout).fetch(name).first else log_errors_with_cmd command, stdout list_entry end rescue KeyError logger.info('Conda', "Key error trying to find #{name} in\n#{JSON(stdout)}") list_entry end