Skip to content

Disable aliases when running locally#539

Closed
jonringer wants to merge 1 commit intoNixOS:releasedfrom
jonringer:fix-run-locally-steps
Closed

Disable aliases when running locally#539
jonringer wants to merge 1 commit intoNixOS:releasedfrom
jonringer:fix-run-locally-steps

Conversation

@jonringer
Copy link
Contributor

@jonringer jonringer commented Nov 23, 2020

Sometimes I run this locally when ofborg gets broken, or when ofborg is "backed up".

However, I was able to run it locally, but still fail in practice.

NixOS/nixpkgs#104416

now, it should run correctly as:

$ GC_INITIAL_HEAP_SIZE=16g nix-env -f ./outpaths.nix -qaP --no-name --out-path --arg checkMeta true --arg allowAliases false --show-trace > out-paths
error: while evaluating anonymous function at /home/jon/projects/nixpkgs/outpaths.nix:46:12, called from undefined position:
while evaluating 'g' at /home/jon/projects/nixpkgs/lib/attrsets.nix:276:19, called from undefined position:
while evaluating anonymous function at /home/jon/projects/nixpkgs/pkgs/top-level/release-lib.nix:144:38, called from undefined position:
while evaluating 'isDerivation' at /home/jon/projects/nixpkgs/lib/attrsets.nix:305:18, called from /home/jon/projects/nixpkgs/pkgs/top-level/release-lib.nix:146:10:
while evaluating 'callPackageWith' at /home/jon/projects/nixpkgs/lib/customisation.nix:117:35, called from /home/jon/projects/nixpkgs/pkgs/top-level/all-packages.nix:25135:12:
while evaluating 'makeOverridable' at /home/jon/projects/nixpkgs/lib/customisation.nix:67:24, called from /home/jon/projects/nixpkgs/lib/customisation.nix:121:8:
anonymous function at /home/jon/projects/nixpkgs/pkgs/games/amoeba/default.nix:1:1 called without required argument 'xlibs', at /home/jon/projects/nixpkgs/lib/customisation.nix:69:16

@jonringer
Copy link
Contributor Author

The CI all seem to be failing to install nix

@cole-h
Copy link
Member

cole-h commented Nov 23, 2020

I merged an update to install-nix-action -- if you rebase and re-push, CI should pass.

(I tried to "restart all jobs" from the GitHub interface, but it still fails because your branch doesn't have #540 I assume.)

@jonringer
Copy link
Contributor Author

There's a few other implications of doing this. Not sure how the CI on nixpkgs is actually getting called but there are a LOT of aliases still being used

@jonringer
Copy link
Contributor Author

jonringer commented Nov 23, 2020

Doing allowAliases = false; on the global eval would require significant work within nixpkgs to not fail. The no-aliases CI job must be just running this in some limited scope.

@cole-h
Copy link
Member

cole-h commented Jun 16, 2023

#645 has been merged, which achieves a similar goal.

@cole-h cole-h closed this Jun 16, 2023
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

Successfully merging this pull request may close these issues.

2 participants