From 67d4dcd7e48f32536e21439626a9a1bed8d58da8 Mon Sep 17 00:00:00 2001 From: Siddhartha Bagaria Date: Mon, 11 Mar 2024 23:10:06 -0700 Subject: [PATCH] Also check VERSION_CODENAME (#285) Addresses part or all of #275. --- toolchain/internal/common.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolchain/internal/common.bzl b/toolchain/internal/common.bzl index 9a402665..af085d40 100644 --- a/toolchain/internal/common.bzl +++ b/toolchain/internal/common.bzl @@ -83,6 +83,8 @@ def _linux_dist(rctx): version = "" if "VERSION_ID" in info: version = info["VERSION_ID"].strip('"') + elif "VERSION_CODENAME" in info: + version = info["VERSION_CODENAME"].strip('"') return distname, version