Skip to content

Commit

Permalink
Also check VERSION_CODENAME (#285)
Browse files Browse the repository at this point in the history
Addresses part or all of #275.
  • Loading branch information
siddharthab authored Mar 12, 2024
1 parent ca816f6 commit 67d4dcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toolchain/internal/common.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 67d4dcd

Please sign in to comment.