-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
pub2nix.generatePackageConfig: Use logical paths for pubspec.yaml #310059
base: master
Are you sure you want to change the base?
Conversation
Result of 59 packages built:
|
Result of 2 packages marked as broken and skipped:
3 packages failed to build:
51 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.
I don't think I really understood from the description when the symlink it will resolve will have ..
. or when that symlink will be the result of a linkFarm
. But I think I understand the problem it's fixing..
Description of changes
When using
pub2nix
with multiple packages that have path dependencies on each-other,linkFarm
can be used to put them all in the same directory.This confuses
generatePackageConfig
, though, as it resolves the parent directory of alinkFarm
entry as its real parent (typically the Nix store directory) rather than thelinkFarm
root.This PR changes
generatePackageConfig
to userealpath --logical
when resolving other packages'pubspec.yaml
files, in order to avoid this issue.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 馃憤 reaction to pull requests you find important.
@NixOS/flutter