Skip to content

Commit

Permalink
fix: load config before instantiating repodata in artifact upload (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester authored Mar 9, 2023
1 parent 218216e commit 946442f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bioconda_utils/artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
IMAGE_RE = re.compile(r"(.+)(?::|%3A)(.+)\.tar\.gz$")


def upload_pr_artifacts(repo, git_sha, dryrun=False, mulled_upload_target=None, label=None) -> bool:
def upload_pr_artifacts(config, repo, git_sha, dryrun=False, mulled_upload_target=None, label=None) -> bool:
_config = utils.load_config(config)
repodata = utils.RepoData()

quay_token = os.environ['QUAY_OAUTH_TOKEN']
Expand Down
2 changes: 1 addition & 1 deletion bioconda_utils/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def handle_merged_pr(
label = os.getenv('BIOCONDA_LABEL', None) or None

success = upload_pr_artifacts(
repo, git_range[1], dryrun=dryrun, mulled_upload_target=quay_upload_target, label=label
config, repo, git_range[1], dryrun=dryrun, mulled_upload_target=quay_upload_target, label=label
)
if not success and fallback == 'build':
success = build(
Expand Down

0 comments on commit 946442f

Please sign in to comment.