Run buildifier on bazel/ (#913)

This commit is contained in:
Kevin Lubick
2021-10-19 15:56:55 -04:00
committed by GitHub
parent 773e4f955d
commit f8615b4782
9 changed files with 33 additions and 30 deletions

View File

@@ -3,13 +3,13 @@ load("@build_bazel_rules_nodejs//:index.bzl", "npm_install")
load(":revisions.bzl", "EMSCRIPTEN_TAGS")
def _parse_version(v):
return [int(u) for u in v.split(".")]
return [int(u) for u in v.split(".")]
def emscripten_deps(emscripten_version = "latest"):
version = emscripten_version
if version == "latest":
version = reversed(sorted(EMSCRIPTEN_TAGS.keys(), key=_parse_version))[0]
version = reversed(sorted(EMSCRIPTEN_TAGS.keys(), key = _parse_version))[0]
if version not in EMSCRIPTEN_TAGS.keys():
error_msg = "Emscripten version {} not found.".format(version)