Skip to content

opam-repository: remove broken/unnecessary patch#388471

Merged
vbgl merged 1 commit intoNixOS:masterfrom
kit-ty-kate:fix-opam-publish
Mar 13, 2025
Merged

opam-repository: remove broken/unnecessary patch#388471
vbgl merged 1 commit intoNixOS:masterfrom
kit-ty-kate:fix-opam-publish

Conversation

@kit-ty-kate
Copy link
Copy Markdown
Contributor

This patch breaks the opam-publish package on nixpkgs. I'm not sure why it was ever necessary but it breaks the invariants of the library and would've never worked for its intended purpose anyway: CIdent is a value indicating a variable, not a constant so it will be replaced with an empty string when the new /nix/store/wq37ah6ayglskxv1viw204j246miz9mw-curl-8.11.0-bin/bin/curl value isn't recognized. For this reason opam-publish currently fails with:

$ opam-publish
[ERROR] Uncaught exception: "": command not found.

@github-actions github-actions bot added the 6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. label Mar 9, 2025
@nix-owners nix-owners bot requested a review from ulrikstrid March 9, 2025 17:02
@github-actions github-actions bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Mar 9, 2025
@ulrikstrid
Copy link
Copy Markdown
Member

ulrikstrid commented Mar 11, 2025

Looks like this has been here since the beginning, maybe @sternenseemann or @vbgl has some insight into why it was added like this?

I assume what we want to do is to replace "curl" with "${curl}/bin/curl" instead to make sure curl is available.

@vbgl
Copy link
Copy Markdown
Contributor

vbgl commented Mar 11, 2025

I have no clue why this patch is there.

@kit-ty-kate
Copy link
Copy Markdown
Contributor Author

is there anything i can do to get this merged by any chance?

@vbgl vbgl merged commit 6bef675 into NixOS:master Mar 13, 2025
27 checks passed
@vbgl
Copy link
Copy Markdown
Contributor

vbgl commented Mar 13, 2025

Your message was the thing to be done.

@kit-ty-kate kit-ty-kate deleted the fix-opam-publish branch March 13, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants