Skip to content

Commit ca0a456

Browse files
Uploads: unset an empty PREFIX_API_KEY so Repository Access is used (#18)
The build workflows pass PREFIX_API_KEY from the (now deleted) secret, so the variable is set but empty; rattler-build then refuses --generate-attestation ("cannot be used with an API key"). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f22412b commit ca0a456

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tools/robostack.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ def upload(distro: str, files: list[str], cwd: Path) -> int:
188188
channel = override or s.get("channel_name", f"robostack-{distro}")
189189
cmd = ["rattler-build", "upload", "prefix", "-c", channel, "--skip-existing"]
190190
if not os.environ.get("PREFIX_API_KEY"):
191+
# the build workflows pass the secret through; without it the variable is
192+
# set but empty, and rattler-build would still take it for an API key
193+
# ("--generate-attestation cannot be used with an API key")
194+
os.environ.pop("PREFIX_API_KEY", None)
191195
cmd.append("--generate-attestation")
192196
else:
193197
token = os.environ.get("ANACONDA_API_TOKEN", "")

0 commit comments

Comments
 (0)