import type { GetReleasesConfig , ReleaseResult } from '../types' ; import * as direct from './releases-direct' ; import * as goproxy from './releases-goproxy' ; export { id } from './common' ; export { getDigest } from './digest' ; export const customRegistrySupport = false ; export function getReleases ( config ) { return process . env . GOPROXY ? goproxy . getReleases ( config ) : direct . getReleases ( config ) ; }