-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Agda don't install Everything module #110512
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
Agda don't install Everything module #110512
Conversation
53231e9
to
112d0f1
Compare
@turion told me to mention you here, @alexarice. |
112d0f1
to
e283194
Compare
This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 1 package marked as broken and skipped:
6 packages built:
|
This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 1 package marked as broken and skipped:
6 packages built:
|
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.
LGTM with the changes mentioned by the other reviewers
e283194
to
a412cd9
Compare
I did some refactorings to test the |
a412cd9
to
d2d12f5
Compare
Added assertion messages with the last push. |
d2d12f5
to
bc48f0d
Compare
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 work
Another option would be using |
Sounds good. IIURC that also allow us to write I tried to replace
with
but this doesn't work. |
You're first use of inherit doesn't really make sense here. I think you want
On a side note I'm not sure if EDIT: I made a mistake here, it should be |
The Everthing module is not part of a library and should therefore not be copied to the nix store. This is particularly bad, if the Everything module is defined in an agda library included directory, e.g. consider an agda-lib with include: . and Everything.agda in the project root (.), in which case the Everything module would become part of the library. If multiple such projects are in the dependency tree, the Everything module becomes ambiguous and the build would fail.
bc48f0d
to
688ebdc
Compare
I believe I have a applied every suggestion now, besides the location for
Of course, I posted it wrong before. |
@NixOS/ofborg test agda Edit: This might have been the wrong command |
@ofborg test agda |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
The aarch64 tests fail. If it is unclear why just mark it broken. Then we can merge I think. |
Looking at the ofborg log (https://github.com/NixOS/nixpkgs/pull/110512/checks?check_run_id=1763878523, https://logs.nix.ci/?key=nixos/nixpkgs.110512&attempt_id=aff76ab4-d296-4a6a-a582-812206b972b0) I'm finding this error:
It seems that on |
I'm not sure the aarch64 tests have ever worked |
Indeed they failed on master as well. I reported on #111738 with additional context. So I think we should be able to merge. I'll try and address that failure separately. |
Motivation for this change
agdaPackages.mkDerivation: don't install Everything module
The Everthing module is not part of a library and should therefore
not be copied to the nix store.
This is particularly bad, if the Everything module is defined in
an agda library included directory, e.g. consider an agda-lib with
and Everything.agda in the project root (.), in which case the
Everything module would become part of the library.
If multiple such projects are in the dependency tree, the Everything
module becomes ambiguous and the build would fail.
Things done
Exclude Everything.agda etc. from
find
ininstallPhase
.nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)