import { fromPairs } from "lodash";
import {
SoftwareEnvNames,
SOFTWARE_ENV_NAMES,
} from "@cocalc/util/consts/software-envs";
import { EnvData } from "./types";
import SOFTWARE_1804 from "software-inventory/18.04.json";
import SOFTWARE_2004 from "software-inventory/20.04.json";
import SOFTWARE_2204 from "software-inventory/22.04.json";
export const SOFTWARE_URLS: { [key in SoftwareEnvNames]: string } = fromPairs(
SOFTWARE_ENV_NAMES.map((name) => [
name,
`https://storage.googleapis.com/cocalc-compute-environment/software-inventory-${name}.json`,
]),
);
export const SOFTWARE_FALLBACK: { [key in SoftwareEnvNames]: EnvData } = {
"18.04": SOFTWARE_1804 as EnvData,
"20.04": SOFTWARE_2004 as EnvData,
"22.04": SOFTWARE_2204 as EnvData,
} as const;