Skip to content

Fix project flags #253

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

Merged
merged 5 commits into from
Oct 11, 2019
Merged

Fix project flags #253

merged 5 commits into from
Oct 11, 2019

Conversation

hamishmack
Copy link
Collaborator

Project flags (from stack.yaml and plan.json) are exported in a modules attribute by stack-to-nix and plan-to-nix, but are not currently used. This change updates mkStackPkgSet and mkCabalProjectPkgSet so that the modules attribute is used (if present) and includes tests to check they are.

Copy link
Collaborator

@angerman angerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, would just benefit from one additional comment documenting the mkOverride requirement.

@@ -9,7 +9,7 @@ let
});
pkgSet = mkCabalProjectPkgSet {
plan-pkgs = plan.pkgs;
modules = [ { packages.buildable-test.flags.exclude-broken = true; } ];
modules = [ { packages.buildable-test.flags.exclude-broken = mkOverride 10 true; } ];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add a comment here why we need the mkOverride 10 here.

Copy link
Collaborator

@angerman angerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

@hamishmack hamishmack merged commit f648a65 into master Oct 11, 2019
@hamishmack hamishmack deleted the hkm/project-flags branch October 11, 2019 04:36
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