Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opam-repository CI jobs are failing with At /home/opam/.opam/repo/default/packages/color/color.0.3.0/opam:37:5-37:6:: Parse error #164

Closed
shonfeder opened this issue Nov 25, 2024 · 6 comments

Comments

@shonfeder
Copy link
Collaborator

shonfeder commented Nov 25, 2024

This appears to be affecting all completed opam-ci jobs. See, e.g., https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/f83c066b82d2cc921f725d5ad7c8b3df17ee1c1a/variant/extras,arm32-ocaml-4.14,caldav.0.1.0

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
[ERROR] At /home/opam/.opam/repo/default/packages/color/color.0.3.0/opam:37:5-37:6::
        Parse error
[ERROR] Strict mode: aborting
[ERROR] Could not update repository "default": OpamStd.OpamSys.Exit(30)
[ERROR] Fetching repository default with file:///home/opam/opam-repository fails, reverting to file:///home/opam/opam-repository
"/usr/bin/linux32" "/bin/sh" "-c" "opam repository set-url --strict default opam-repository/" failed with exit status 40
2024-11-25 15:38.46: Job failed: Failed: Build failed
2024-11-25 15:38.46: Log analysis:
2024-11-25 15:38.46: >>> 
[ERROR] At /home/opam/.opam/repo/default/packages/color/color.0.3.0/opam:37:5-37:6::
 (score = 20)
2024-11-25 15:38.46: >>> 
[ERROR] Strict mode: aborting
 (score = 20)
2024-11-25 15:38.46: >>> 
[ERROR] Fetching repository default with file:///home/opam/opam-repository fails, reverting to file:///home/opam/opam-repository
 (score = 20)
2024-11-25 15:38.46: At /home/opam/.opam/repo/default/packages/color/color.0.3.0/opam:37:5-37:6::
@shonfeder
Copy link
Collaborator Author

shonfeder commented Nov 25, 2024

I suspect we just a got a malformed file into the repo and we can revert that commit.

@shonfeder
Copy link
Collaborator Author

[sf@comp opam-repository]$ opam lint packages/color/color.0.3.0/
/home/sf/Sync/oss/opam-repository/packages/color/color.0.3.0/opam: Errors.
    error  2: File format error at line 37, column 5: Parse error

Introduced in ocaml/opam-repository@dd68f43 with the merge of ocaml/opam-repository#26927

@mtelvers
Copy link
Collaborator

Here is the fix for the package ocaml/opam-repository#26954

@shonfeder
Copy link
Collaborator Author

I've cancelled all the CI jobs that were building on the broken base.

@shonfeder
Copy link
Collaborator Author

I will transfer this issue to opam-repository, as opening it here was a mistaken on my part.

@shonfeder
Copy link
Collaborator Author

See ocaml/opam-repository#26956

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

No branches or pull requests

2 participants