-
Notifications
You must be signed in to change notification settings - Fork 237
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
dune-project multiple changes: required lablgtk version, generate opam files, update generated files #671
base: master
Are you sure you want to change the base?
Conversation
Thank you for your submission, and I just now saw #674. After 2.52.0 I will have to figure out how these two relate, but if you and @olafhering could end up with a consensus set of changes that would be great. |
IMO opam files should not be generated by default. And generated files should not be in a SCM anyway. The commit message does not state why changing Whatever component is the consumer of these generated local opam files, the build command is apparently switched from |
I'm releasing control of this PR branch. Please (force-)push at will. |
Thanks. I will look at this after release and afterwards if you want to sort through changes and rebase I will consider, or if you think whatever I do is good enough that's fine too. |
Release made. Please either rebase on top of current master or close, if everything was in #674. (I'm trying to avoid any work I can as I feel like my time on unison is a bottleneck.) |
I don't want to change to generated opam files without a proper discussion about why or why not, and I think that belongs on unison-hackers@. And, if we do change to generated, and the decision is made to have generated files checked in (like strings.ml is now), I would like commits separated into logical changes and regen operations. I'm not asking you to do all this work; to me the first thing is agreement on what we ought to do and why. I don't know enough about dune/opam to have a strong opinion yet. If you want to just have the lablgtk min version change, that seems ok. With any luck that is the version that the build instructions say. |
I'm still proposing to generate OPAM files from
|
Feel free to bring up on unison-hackers. There is already a comment here opposing the change. |
A few random questions. What does Should |
But at this point the value, or even the existence, does not matter because nothing consumes the version. Also, unison is no library, which means the version will not be part of the ocamlfind I have to check what |
The requested discussion on unison-hackers has not occurred, and there's an argument against it above, so this PR is on hold, and I'm inclined to close it after 30 days of the feedback label. |
I haven’t received post access to that mailing list, and would prefer launching the discussion after depositing my dissertation in May. |
OK, happy to wait until 7/1. It's been a long time, but I understand how finishing a thesis is, so good luck, and we'll probably still be here when you come out the other side. |
I'm meanwhile ok with this PR. In the context of opam-repository, the current result of I think it is safe to leave to built-in default for What we/someone may do in the future is to deal with |
Another reason for generating Lines 52 to 57 in 2a73c1f
Lines 13 to 18 in 2a73c1f
|
I see your point, but this is a cultural battle about which file is the one that is primary, and seems to be basically a tussle between two packaging systems. Unison is an outsider to this tussle, and I am inclined not to wade into it. |
Making |
I understand that, but I have not accepted that goal, so far. I'm not opposed; it just seems like a more complicated issue. |
Dune is not yet a packaging system, but a build system that allows exporting package descriptions. A dune-based project has its standardized build procedure, so writing |
This PR is still pending a discussion on unison-hackers sorting out all the issues. |
I've sent an email to unison-hackers on June 24. Has it been distributed or should I resend it? |
You sent a very brief note, but it did not really explain the issues enough for someone not an opam expert to understand. I've seen comments that we shouldn't remove opam, and comments that we should because it's now generated, and comments that seem to say that dune and opam are sort of the same thing, and that they are different. It might help to write the argument for why the change is right into the commit message, vs just saying 'polish', and to rebase as a lot as hit master. I expect the rebase is trivial, but it takes a potential hiccup off the table. |
7cd8985
to
f71cf3a
Compare
I've rebased the commit on top of the current master branch. I have no idea of how to write the commit message, as I don't know what audience it is for. "Someone not an opam expert" should not be in charge of reviewing the changes here, and I lack the ability to teach OPAM. These changes are proposed as-is. I've granted the maintainers (force-)push access to this branch to change the commit message and/or contents. |
I'm not sure if it was already discussed in the context of unison: why are the Did you add it intentionally? |
The |
Feel free to remove the |
652c642
to
5a5d3ff
Compare
Please see https://lists.seas.upenn.edu/pipermail/unison-hackers/2022-November/002061.html and followup on the list. |
I've made the following changes based on the discussions on unison-hackers:
No Not Merge Until:
|
Follow up #658, addressing some review comments.
Now
dune build
generates the.opam
files, avoiding potential syntax errors caused by handwriting.Better check in the generated
.opam
files to the repository, since:dune-project
is not updated frequently.opam
files allowsopam publish
to release to OPAM more automatically.