Expose distro version ID as an environment variable

This commit is contained in:
Elara 2022-11-20 21:45:45 +00:00
parent ffff59433e
commit 00ec52f9f4
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ func genBuildEnv(info *distro.OSRelease) []string {
"DISTRO_NAME="+info.Name,
"DISTRO_PRETTY_NAME="+info.PrettyName,
"DISTRO_ID="+info.ID,
"DISTRO_BUILD_ID="+info.BuildID,
"DISTRO_VERSION_ID="+info.VersionID,
"ARCH="+runtime.GOARCH,
"NCPU="+strconv.Itoa(runtime.NumCPU()),