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

Stop supporting extra-files in favour of extra-sources #5811

Open
kit-ty-kate opened this issue Jan 29, 2024 · 5 comments
Open

Stop supporting extra-files in favour of extra-sources #5811

kit-ty-kate opened this issue Jan 29, 2024 · 5 comments

Comments

@kit-ty-kate
Copy link
Member

It's a long term feature request but it looks to me that extra-source(s) is just a superset of extra-files with the added advantage of making repositories more lean and extremely easy to parse (if support for the opam 1.x repository format were also to be dropped)

One inconvenient is that it forces patches to be hosted somewhere else, but e.g. for opam-repository they could be hosted on https://github.com/ocaml/opam-source-archives/ instead for example.

@jonahbeckford
Copy link
Contributor

@kit-ty-kate
Copy link
Member Author

the same way. As far as i can see this package doesn't use extra-files

@jonahbeckford
Copy link
Contributor

I'm a dork. Mentally saw extra-files as extra-sources. I stopped using those as it was easier to use git branches as you have already mentioned.

Ignore my lack of coffee!

@kit-ty-kate
Copy link
Member Author

Side note for possible future implementers: We only depend on the base64 library to encode extra-files. Removing them would also remove the dependency.

@hannesm
Copy link
Member

hannesm commented May 16, 2024

Side note: (a) this would be amazing for conex (security of opam-repository) as well, since its logic would be way smaller

and (b) in hannesm@900604d#diff-b5258ffa9cf2915b2fe0d75226f4e243d47b8de4fdbaa1405c12ccf220f9f126 I developed an opam admin subcommand to migrate existing opam files with extra-files to extra-sources.

for the main opam-repository, I also opened an issue proposing to apply this ocaml/opam-repository#25876

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants