-
Notifications
You must be signed in to change notification settings - Fork 451
pkg: Force breaks between depext hint and depext list #12312
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,8 @@ error message. | |
File "dune-project", line 1, characters 0-0: | ||
Error: Invalid first line, expected: (lang <lang> <version>) | ||
|
||
Hint: You may want to verify the following depexts are installed: | ||
Hint: | ||
You may want to verify the following depexts are installed: | ||
- gnupg | ||
- unzip | ||
[1] | ||
|
@@ -76,3 +77,58 @@ when the program is not found. | |
Hint: You may want to verify the following depexts are installed: | ||
- unknown-package | ||
[1] | ||
|
||
Update the foo lockfile to have a single depext name: | ||
$ make_lockpkg foo <<EOF | ||
> (version 0.0.1) | ||
> (build | ||
> (run dune build)) | ||
> (depexts foo) | ||
> (source | ||
> (fetch | ||
> (url file://$PWD/foo.tar) | ||
> (checksum md5=$(md5sum foo.tar | cut -f1 -d' ')))) | ||
> EOF | ||
|
||
Build the project, when it fails building 'foo' package, it shows the depexts | ||
error message. | ||
$ dune build | ||
File "dune.lock/foo.pkg", line 3, characters 6-10: | ||
3 | (run dune build)) | ||
^^^^ | ||
Error: Logs for package foo | ||
File "dune-project", line 1, characters 0-0: | ||
Error: Invalid first line, expected: (lang <lang> <version>) | ||
|
||
Hint: You may want to verify the following depexts are installed: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be updated too with the new line? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ideally yes but I haven't figured out how to express this with It might be a bug in Pp though I don't completely understand Pp. |
||
- foo | ||
[1] | ||
|
||
|
||
Update the foo lockfile to have short depext names: | ||
$ make_lockpkg foo <<EOF | ||
> (version 0.0.1) | ||
> (build | ||
> (run dune build)) | ||
> (depexts a b) | ||
> (source | ||
> (fetch | ||
> (url file://$PWD/foo.tar) | ||
> (checksum md5=$(md5sum foo.tar | cut -f1 -d' ')))) | ||
> EOF | ||
|
||
Build the project, when it fails building 'foo' package, it shows the depexts | ||
error message. | ||
$ dune build | ||
File "dune.lock/foo.pkg", line 3, characters 6-10: | ||
3 | (run dune build)) | ||
^^^^ | ||
Error: Logs for package foo | ||
File "dune-project", line 1, characters 0-0: | ||
Error: Invalid first line, expected: (lang <lang> <version>) | ||
|
||
Hint: You may want to verify the following depexts are installed: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be updated too with the new line? |
||
- a | ||
- b | ||
[1] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be
~f:Fun.id
and you should putPp.hovbox
on the first line andPp.vbox
on the second. Then you should do aPp.vbox
after concatenating. I think this will give you what you want.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you mean:
I tried that and it had the same behaviour as the current state of this PR.