Skip to content

registry: revert opam/k3kcli backends to ubi#6406

Merged
jdx merged 5 commits intojdx:mainfrom
risu729:opam-registry-ubi
Sep 26, 2025
Merged

registry: revert opam/k3kcli backends to ubi#6406
jdx merged 5 commits intojdx:mainfrom
risu729:opam-registry-ubi

Conversation

@risu729
Copy link
Contributor

@risu729 risu729 commented Sep 25, 2025

Resolves #6402.

Neither works with the GitHub backend because the releases have archives, but we need to download non-archive files.
https://github.com/ocaml/opam/releases/tag/2.4.1
https://github.com/rancher/k3k/releases/tag/v0.3.4

We should fix it, but I don't have a good idea how to fix it.
Maybe we can only exclude small non-archive files (text files) when archive files exist, but I think this also causes some bugs.

Copilot AI review requested due to automatic review settings September 25, 2025 03:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reverts the opam backend from GitHub releases to UBI (Universal Binary Installer) and adds version testing functionality.

  • Reverts opam backend from github:ocaml/opam to ubi:ocaml/opam
  • Adds version test command to verify opam installation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@risu729 risu729 changed the title registry: revert opam backend to ubi registry: revert opam/k3kcli backends to ubi Sep 25, 2025
@jdx
Copy link
Owner

jdx commented Sep 25, 2025

Seems like we could support non-archive binaires, no? I might have a look at this soon.

Is the tool supposed to be failing in this PR?

@risu729
Copy link
Contributor Author

risu729 commented Sep 25, 2025

Seems like we could support non-archive binaires, no?

Oh are we not supporting them in GitHub backend? If so we can just add support for it.
I thought they were filtered out for some reasons but I hadn't checked yet.

Is the tool supposed to be failing in this PR?

No, it should pass but somehow it's failing. Fixed in #6421

@risu729 risu729 marked this pull request as draft September 25, 2025 20:29
@risu729 risu729 marked this pull request as ready for review September 26, 2025 01:05
Comment out test commands for k3kcli tool.
@jdx jdx merged commit 7b2e5cf into jdx:main Sep 26, 2025
22 checks passed
@jdx jdx mentioned this pull request Sep 26, 2025
@risu729 risu729 deleted the opam-registry-ubi branch September 27, 2025 01:21
jdx pushed a commit that referenced this pull request Sep 28, 2025
~~Also reverts #6406

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants