Skip to content

Commit

Permalink
STAC-21039 Progress to omnibus build.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisParkin committed Apr 26, 2024
1 parent 055b2f1 commit cd2fd06
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tasks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,16 @@ def load_release_versions(_, target_version):
print("[load_release_versions] Loading deps for version ", target_version)
with open("stackstate-deps.json", "r") as f:
versions = json.load(f)
if target_version in versions:
# windows runners don't accepts anything else than strings in the
# environment when running a subprocess.
return {str(k): str(v) for k, v in versions[target_version].items()}
raise Exception(f"Could not find '{target_version}' version in release.json")
print("Using the following build environment:")
for k, v in versions.items():
print("[dep_version]", str(k), str(v))
return {str(k):str(v) for k, v in versions.items()}
# versions = json.load(f)
# if target_version in versions:
# # windows runners don't accepts anything else than strings in the
# # environment when running a subprocess.
# return {str(k): str(v) for k, v in versions[target_version].items()}
# raise Exception("Could not find '{}' version in release.json".format(target_version))


@task()
Expand Down

0 comments on commit cd2fd06

Please sign in to comment.